From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from hamza.pair.com (hamza.pair.com [209.68.5.143]) by sourceware.org (Postfix) with ESMTPS id C135E38460A2 for ; Fri, 3 May 2024 23:37:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C135E38460A2 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=pfeifer.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=pfeifer.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C135E38460A2 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=209.68.5.143 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1714779460; cv=none; b=qCJzPa0rpA274HOyICOVrWTce9a7cWtMl3gzPbDIwx/aZ4wxjTX0X/nHdiki5EG9Y3h4UTIxA1M33ULo/NsNWGaFt1XIfYOd5qMl75RJ7f/HqN8BdC1Km8EIlhQpVq7nzsKnzAIfyIK5DvSNt+9ZlAbJCbRnGidAhdDq8KeZZXw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1714779460; c=relaxed/simple; bh=57UwEk10rMmqAgouFZo6amAjHFPlijgpohJAdW2jkxk=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=rDd7ZgxWSxKPsAWyDQKdZeWldO79oGKH+DOu0+7sRGkt9PjyluTIzDEje5V/DBsF9tKcGkQuS9GLlAOy1GQVcpSlDoEVooC2+aFVbCQgX83axNYq5Txeu06bXQ/CeI3Fnxcx9N7tRIccK2O1ov4E16KaIxxT8PcW2cm7t6e4r40= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from hamza.pair.com (localhost [127.0.0.1]) by hamza.pair.com (Postfix) with ESMTP id 750EF33E9B; Fri, 3 May 2024 19:37:39 -0400 (EDT) Received: from daya.localdomain (188-23-56-169.adsl.highway.telekom.at [188.23.56.169]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by hamza.pair.com (Postfix) with ESMTPSA id B7A8433E99; Fri, 3 May 2024 19:37:38 -0400 (EDT) Date: Sat, 4 May 2024 01:37:37 +0200 (CEST) From: Gerald Pfeifer To: Martin Jambor cc: Jakub Jelinek , GCC Patches , Michal Jires Subject: Re: [wwwdocs] Porting-to-14: Mention new pragma GCC Target behavior In-Reply-To: Message-ID: References: <1d9a90f2-399d-ddbb-8e76-09382eaae264@pfeifer.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Scanned-By: mailmunge 3.11 on 209.68.5.143 X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00,GIT_PATCH_0,KAM_DMARC_STATUS,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 List-Id: On Thu, 2 May 2024, Martin Jambor wrote: > Thanks for your suggestions, this is what I am going to commit in a > moment. Thanks! > diff --git a/htdocs/gcc-14/porting_to.html b/htdocs/gcc-14/porting_to.html > > +

Pragma GCC target now affects preprocessor symbols

A small detail I missed:

closed by

:-) I'll fix this in a second. > +

> +The behavior of pragma GCC target and specifically how it affects ISA > +macros has changed in GCC 14. In GCC 13 and older, the GCC > +target pragma defined and undefined corresponding ISA macros in > +C when using the integrated preprocessor during compilation but not > +when the preprocessor was invoked as a separate step or when using > +the -save-temps option. In C++ the ISA macro definitions > +were performed in a way which did not have any actual effect. > + > +In GCC 14 C++ behaves like C with integrated preprocessing in earlier > +versions. Moreover, in both languages ISA macros are defined and > +undefined as expected when preprocessing separately from compilation. I assume this should be two paragraphs? I'll make this change and some other tweaks. Gerald