gcc-wwwdocs branch master updated. d63b0ce2968ddaa335a679ba4595ca582ef76d6d
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "gcc-wwwdocs". The branch, master has been updated via d63b0ce2968ddaa335a679ba4595ca582ef76d6d (commit) from d2323d3efa30008ed05519a398eb7fe1e9b446d3 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log - commit d63b0ce2968ddaa335a679ba4595ca582ef76d6d Author: Martin Jambor Date: Fri May 3 11:53:43 2024 +0200 List znver5 in the GCC 14 changes document diff --git a/htdocs/gcc-14/changes.html b/htdocs/gcc-14/changes.html index 8dfbf7dc..46a0266d 100644 --- a/htdocs/gcc-14/changes.html +++ b/htdocs/gcc-14/changes.html @@ -954,6 +954,12 @@ __asm (".global __flmap_lock" "\n\t" -fsanitize=hwaddress will enable -mlam=u57 by default. + GCC now supports AMD CPUs based on the znver5 core via +-march=znver5. In addition to the ISA extensions +enabled on a znver4 core, this switch further enables the +AVX512VP2INTERSECT, AVXVNNI, MOVDIR64B, MOVDIRI, and PREFETCHI ISA +extensions. + MCore --- Summary of changes: htdocs/gcc-14/changes.html | 6 ++ 1 file changed, 6 insertions(+) hooks/post-receive -- gcc-wwwdocs
gcc-wwwdocs branch master updated. d2323d3efa30008ed05519a398eb7fe1e9b446d3
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "gcc-wwwdocs". The branch, master has been updated via d2323d3efa30008ed05519a398eb7fe1e9b446d3 (commit) from 6c84b7b936a085c13e1f33f2028317fe31bbbcd8 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log - commit d2323d3efa30008ed05519a398eb7fe1e9b446d3 Author: Martin Jambor Date: Thu May 2 23:40:22 2024 +0200 Describe gcc target pragma changes in gcc-14/porting_to.html Adding a subsection on how gcc target pragma changed in GCC 14 in the corresponding porting-to document. diff --git a/htdocs/gcc-14/porting_to.html b/htdocs/gcc-14/porting_to.html index c825a68e..a20d82c2 100644 --- a/htdocs/gcc-14/porting_to.html +++ b/htdocs/gcc-14/porting_to.html @@ -514,6 +514,48 @@ be included explicitly when compiling with GCC 14: +Pragma GCC target now affects preprocessor symbols + + +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. + + +This can lead to different behavior, especially in C++. For example, +a part of the C++ snippet below will be (silently) compiled for an +incorrect instruction set by GCC 14. + + + #if ! __AVX2__ + #pragma GCC push_options + #pragma GCC target("avx2") + #endif + + /* Code to be compiled for AVX2. */ + + /* With GCC 14, __AVX2__ here will always be defined and pop_options + never invoked. */ + #if ! __AVX2__ + #pragma GCC pop_options + #endif + + /* With GCC 14, all following functions will be compiled for AVX2 + which was not intended. */ + + + +The fix in this case is to remember whether pop_options +needs to be performed in a new user-defined macro. + --- Summary of changes: htdocs/gcc-14/porting_to.html | 42 ++ 1 file changed, 42 insertions(+) hooks/post-receive -- gcc-wwwdocs
gcc-wwwdocs branch master updated. 8d40685d6a2b26aff26f1cd68f5bfd9728b2eda5
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "gcc-wwwdocs". The branch, master has been updated via 8d40685d6a2b26aff26f1cd68f5bfd9728b2eda5 (commit) from 408ef50eced845bc5a084bfac868686df74cbdcf (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log - commit 8d40685d6a2b26aff26f1cd68f5bfd9728b2eda5 Author: Martin Jambor Date: Wed Apr 10 16:33:14 2024 +0200 Fix link to "Feature Test Macros" in "Porting to GCC 14" page Michal Jireš found out that the link to Feature Test Macros on the Porting to GCC 14 page was broken, it misses a "/latest/" directory in the middle of the path. diff --git a/htdocs/gcc-14/porting_to.html b/htdocs/gcc-14/porting_to.html index 35274691..c825a68e 100644 --- a/htdocs/gcc-14/porting_to.html +++ b/htdocs/gcc-14/porting_to.html @@ -133,7 +133,7 @@ On GNU systems, headers described in standards (such as the C standard, or POSIX) may require the definition of certain macros at the start of the compilation before all required function declarations are made available. -See https://sourceware.org/glibc/manual/html_node/Feature-Test-Macros.html;>Feature Test Macros +See https://sourceware.org/glibc/manual/latest/html_node/Feature-Test-Macros.html;>Feature Test Macros in the GNU C Library manual for details. --- Summary of changes: htdocs/gcc-14/porting_to.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) hooks/post-receive -- gcc-wwwdocs