diff options
author | Richard Biener <rguenther@suse.de> | 2021-08-11 16:28:33 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2021-08-11 16:30:36 +0200 |
commit | cba64d855df581cc26fa487162027138aef4dbe5 (patch) | |
tree | 5e2b20a4b2313cb6fe02046ec9fe1b111d13ac3d /gcc | |
parent | 2cb02e065ff015a69db918eb545a00cd6edf0194 (diff) | |
download | gcc-cba64d855df581cc26fa487162027138aef4dbe5.zip gcc-cba64d855df581cc26fa487162027138aef4dbe5.tar.gz gcc-cba64d855df581cc26fa487162027138aef4dbe5.tar.bz2 |
Fix gcc.dg/lto/pr48622_0.c testcase
This fixes the testcase to not rely on the reference to
ashift_qi_1 being optimized out by RTL optimization via
help of the initregs pass that changes comparisons of
uninitialized data with a comparison that is always false.
2021-08-11 Richard Biener <rguenther@suse.de>
* gcc.dg/lto/pr48622_1.c: Provide non-LTO definition
of ashift_qi_1.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.dg/lto/pr48622_1.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/lto/pr48622_1.c b/gcc/testsuite/gcc.dg/lto/pr48622_1.c new file mode 100644 index 0000000..4d05bae --- /dev/null +++ b/gcc/testsuite/gcc.dg/lto/pr48622_1.c @@ -0,0 +1,6 @@ +/* { dg-options "-fno-lto" } */ + +typedef unsigned int u8 __attribute__ ((mode (QI))); +u8 ashift_qi_1 (u8) +{ +} |