Message ID | 20221011210156.7710-4-palmer@rivosinc.com |
---|---|
State | Accepted, archived |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp2297001wrs; Tue, 11 Oct 2022 14:04:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4nf/hlj2oLsXMmy0y4c36c7Hc10BnS/l64eALvlt4JVyBViuEl18Pa4V2kaoHZO1Rid2l7 X-Received: by 2002:a17:907:2c6b:b0:78d:e4ae:6073 with SMTP id ib11-20020a1709072c6b00b0078de4ae6073mr3233884ejc.612.1665522253890; Tue, 11 Oct 2022 14:04:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665522253; cv=none; d=google.com; s=arc-20160816; b=BqEV6I2/w6TAs0SIgp+BFGEa+8AB5dFsNZ+DmkHdw311BH0Q94KecTo8xKk6K7zRIo BtP3+Pq2v2FImzGP3U2gQvfCWUCkxqogrY8KllpaJW0UnTIPiDUh1XWiIlR2YZQoJRQs LIgwsU6vhi5aAx9q0egbiNcqmAYArMNjCX8o1HnT0pcVnB03CNM2bMpEJp3V23YkyQqz 4kb0T2ykenhAPpPXZo4V+862DmYJgk1v5wp9lCz9ntHflgoGW0Z50eKODvcf83fpxyds MJL2yTyEnd/rDub9NU9wU7XU67p4XXqhMYhGizokAquDkTnQOhhqxcpGIs7JttOw7R28 2azA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:to:from :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:dkim-signature:dmarc-filter:delivered-to; bh=cFiM4hosW/A6xeAGCQMBeO9ohCeaBS6x49+Ig2w9zyY=; b=XdPUZ0jikDlNvUwMXw4Iu2edBjISNEBGDNu1VLXGV8r0cm6Q+pHdUfcGnc4rnGxFKG EK21wC3M4lapxwqG0rVXzpBWc6QjJq4NjeIqEEU1tDSVw0y/ZFeiwNI7hfmV/FObNqZW t0SKZNan1e1AmhBtt7KItxbQSJojKClzwKYKvOWTmluV7/pK1RaEqx6a8dql8jCO5XXN Yr1mUJ2JCAMsxaG4yHrl5pJ+mY+XvmJRzV3SLL8Kf0A4NID6EfBwrWUAncK+cM1tvWdh 14+hn9G7UGwcbIbSFBF5WyowS9Aou9sSclQ5D2zFnKB7p5LfVwvu4eduxFghLE/pRPL+ luTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=XgE8haKR; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id r17-20020a056402035100b0044ea553d7cdsi12570304edw.105.2022.10.11.14.04.13 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Oct 2022 14:04:13 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=fail header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=XgE8haKR; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B51D53850220 for <ouuuleilei@gmail.com>; Tue, 11 Oct 2022 21:03:20 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by sourceware.org (Postfix) with ESMTPS id 9861D3853802 for <gcc-patches@gcc.gnu.org>; Tue, 11 Oct 2022 21:02:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9861D3853802 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-pj1-x102a.google.com with SMTP id t12-20020a17090a3b4c00b0020b04251529so117241pjf.5 for <gcc-patches@gcc.gnu.org>; Tue, 11 Oct 2022 14:02:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=to:from:cc:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:from:to:cc:subject:date :message-id:reply-to; bh=cFiM4hosW/A6xeAGCQMBeO9ohCeaBS6x49+Ig2w9zyY=; b=XgE8haKRzA0Jc631+iXABLl70bcGR3TnmzlCd0jHlyMePuaiaJNhFl6DnDx/lPXdXL eR8ZZmocpzHrSnvdZ8UMQqXBb2On67NsZJof0fLLByQIcqpY0m2w+QTbDHwMrTNeWB4V 49x9P2w9QRyVTnJ5JRJt83qXVSxV5CsUTlqbhrOqAyEPCAwXFjbAwZ96WO2wubZhHe1c /ALzxQs1RBI0m9wqEIssPb0Vx538FkRNOH8GI6Pfnu73Tznm2LKZIYgjDxsSrna7xMWQ JQpRp83iSR33zCvSw40Ko8ffdy7Xgme8XWHQE4bCpikGW7FfEc6igJS4eEBuLsKQ5Zzw h11Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:from:cc:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cFiM4hosW/A6xeAGCQMBeO9ohCeaBS6x49+Ig2w9zyY=; b=BO/CJi9DB91n9FEdqxmaO72bCj2Rpp1Sd1sJfIVKWu7w/dgQPc7RM+MWDCbXllfTjM Fkghz05T75zp6MHWo57W0l1Q0bBA+J4z7Cnex4hdOUXMQcOQ6OLDBSX+Yi786zrKXkib dnsGSDdYaHXMk1uOJE9jP3hWo+Hwadp0HqJ6MhES/tLKdsx6LAFVPOGFoP1p4oDDOwAT LEtJe07PMAcz3WtH9RxAI0rL3umCCHG8Ubqq8Nem4X0Y8oMEfwYTDKA6cnl28Vb+hhzI oRzHRrSUeTuG8rzVmGeA5VJChGZGVUZ7wGuje2GslhuJszzWA04dT2VhA7UyaS33j6uE my2g== X-Gm-Message-State: ACrzQf2ZrriSRwLYJ+g+gqXkv3UOiIphPxGi5H+HtbtZ73cbABXYb5vG 64VnzL0MLT4E24KAs3BLAAbWwQ== X-Received: by 2002:a17:90a:d48b:b0:20a:97fb:3eb with SMTP id s11-20020a17090ad48b00b0020a97fb03ebmr1135139pju.189.1665522175635; Tue, 11 Oct 2022 14:02:55 -0700 (PDT) Received: from localhost ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id w1-20020a17090a028100b0020d29388107sm25344pja.21.2022.10.11.14.02.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Oct 2022 14:02:55 -0700 (PDT) Subject: [PATCH v2 3/3] doc: -falign-functions is ignored for cold/size-optimized functions Date: Tue, 11 Oct 2022 14:01:56 -0700 Message-Id: <20221011210156.7710-4-palmer@rivosinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221011210156.7710-1-palmer@rivosinc.com> References: <20221011210156.7710-1-palmer@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Palmer Dabbelt <palmer@rivosinc.com> To: richard.guenther@gmail.com, hubicka@ucw.cz, gcc-patches@gcc.gnu.org X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746426663231696974?= X-GMAIL-MSGID: =?utf-8?q?1746426663231696974?= |
Series |
doc: -falign-functions improvements
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Palmer Dabbelt
Oct. 11, 2022, 9:01 p.m. UTC
gcc/doc/ChangeLog * invoke.texi (-falign-functions): Mention cold/size-optimized functions. --- gcc/doc/invoke.texi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Comments
On Tue, Oct 11, 2022 at 11:02 PM Palmer Dabbelt <palmer@rivosinc.com> wrote: > > gcc/doc/ChangeLog OK. > * invoke.texi (-falign-functions): Mention cold/size-optimized > functions. > --- > gcc/doc/invoke.texi | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi > index a24798d5029..6af18ae9bfd 100644 > --- a/gcc/doc/invoke.texi > +++ b/gcc/doc/invoke.texi > @@ -13138,7 +13138,8 @@ equal to @var{n}, skipping up to @var{m}-1 bytes. This ensures that at > least the first @var{m} bytes of the function can be fetched by the CPU > without crossing an @var{n}-byte alignment boundary. This does not override > functions that otherwise specify their own alignment constraints, such as via > -an alignment attribute. > +an alignment attribute. Functions that are optimized for size, for example > +cold functions, are not aligned. > > If @var{m} is not specified, it defaults to @var{n}. > > -- > 2.34.1 >
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index a24798d5029..6af18ae9bfd 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -13138,7 +13138,8 @@ equal to @var{n}, skipping up to @var{m}-1 bytes. This ensures that at least the first @var{m} bytes of the function can be fetched by the CPU without crossing an @var{n}-byte alignment boundary. This does not override functions that otherwise specify their own alignment constraints, such as via -an alignment attribute. +an alignment attribute. Functions that are optimized for size, for example +cold functions, are not aligned. If @var{m} is not specified, it defaults to @var{n}.