]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: robustify gcc.target/m68k/20100512-1.c
authorAndreas Schwab <schwab@suse.de>
Tue, 19 Nov 2024 16:35:14 +0000 (17:35 +0100)
committerAndreas Schwab <schwab@suse.de>
Tue, 19 Nov 2024 16:38:27 +0000 (17:38 +0100)
commitceddd28d41f0b9cc797c3568544a114d60c1ba83
treec69bd471ba854b107d1a6fb78fb0337fb530ed83
parentf74f52642fc0bd6b4c6828bd6e86aa5bb206cbca
testsuite: robustify gcc.target/m68k/20100512-1.c

This has been failing since r5-2883-g8cb65b3725f0c3 which caused the
memset to be optimized out.  Add an unoptimizable reference to the local
variable to keep it.

* gcc.target/m68k/20100512-1.c (doTest1, doTest2): Add asm that
references foo.
gcc/testsuite/gcc.target/m68k/20100512-1.c