]> git.ipfire.org Git - thirdparty/gcc.git/commit
target/106219 - proprly mark builtins pure via ix86_add_new_builtins
authorRichard Biener <rguenther@suse.de>
Thu, 7 Jul 2022 08:46:01 +0000 (10:46 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 7 Jul 2022 10:03:45 +0000 (12:03 +0200)
commit8bc243943765f969c0d4625721a9944e9516d013
tree8b5330844f9861efada959656ceb6e369b397c59
parentc1b1c4e58bda152ae932b45396ab67b07dd8c3fe
target/106219 - proprly mark builtins pure via ix86_add_new_builtins

The target optimize pragma path to initialize extra target specific
builtins missed handling of the pure_p flag which in turn causes
extra clobber side-effects of gather builtins leading to unexpected
issues downhill.

PR target/106219
* config/i386/i386-builtins.cc (ix86_add_new_builtins): Properly
set DECL_PURE_P.

* g++.dg/pr106219.C: New testcase.
gcc/config/i386/i386-builtins.cc
gcc/testsuite/g++.dg/pr106219.C [new file with mode: 0644]