]> gcc.gnu.org Git - gcc.git/commit
Fix target/103910: missing GTY on x86_mfence causing PCH usage to ICE
authorAndrew Pinski <apinski@marvell.com>
Wed, 5 Jan 2022 22:00:07 +0000 (22:00 +0000)
committerAndrew Pinski <apinski@marvell.com>
Wed, 5 Jan 2022 22:37:19 +0000 (22:37 +0000)
commitd243f4009d8071b734df16cd70f4c5d09a373769
treed36db6001d9eeb02962a8da44c12484fd19159b4
parentc166632bd22d7da66354121502019fc9c92ef07f
Fix target/103910: missing GTY on x86_mfence causing PCH usage to ICE

With -O3 -march=opteron, a mfence builtin is added after the loop
to say the nontemporal stores are no longer needed. This all good
without precompiled headers as the function decl that is referneced
by x86_mfence is referenced in another variable but with precompiled
headers, x86_mfence is all messed up and the decl was GC'ed away.
This fixes the problem by marking x86_mfence as GTY to save/restore
during precompiled headers just like most other variables in
the header file.

Committed as obvious after a bootstrap/test on x86_64-linux-gnu.

gcc/ChangeLog:

PR target/103910
* config/i386/i386.h (x86_mfence): Mark with GTY.
gcc/config/i386/i386.h
This page took 0.062143 seconds and 6 git commands to generate.