From patchwork Tue Oct 11 21:01:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 58667 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4288B3853565 for ; Tue, 11 Oct 2022 21:03:13 +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 ; 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 ; 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-Google-Smtp-Source: AMsMyM7zTWJzAuBRY+XyCavhF4UkMWFK9QebMk1jCAYSrYW/E+KfI1KznFtin5neQsrunluRS+2wOg== 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 From: Palmer Dabbelt 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" gcc/doc/ChangeLog * 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}.