Turn of ipa-ra in builtins test (PR91059)
authorWilco Dijkstra <wdijkstr@arm.com>
Mon, 8 Jul 2019 17:02:35 +0000 (17:02 +0000)
committerWilco Dijkstra <wilco@gcc.gnu.org>
Mon, 8 Jul 2019 17:02:35 +0000 (17:02 +0000)
The gcc.c-torture/execute/builtins/lib directory contains a reimplementation
of many C library string functions, which causes non-trivial register allocation
bugs with LTO and static linked libraries.  To fix this long-standing test
issue, turn off ipa-ra which avoids the register corruption across calls.  All
builtin torture tests now pass on aarch64-none-elf.  Committed as obvious.

    testsuite/
PR testsuite/91059
PR testsuite/78529
* gcc.c-torture/execute/builtins/builtins.exp: Add -fno-ipa-ra.

From-SVN: r273238

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp

index a7a67fb9fad2349726cb66be9aaeedf126f41754..31c3314b49b8ee4eaf588d368bd8ecd71a550ec8 100644 (file)
@@ -1,3 +1,9 @@
+2019-07-08  Wilco Dijkstra  <wdijkstr@arm.com>
+
+       PR testsuite/91059
+       PR testsuite/78529
+       * gcc.c-torture/execute/builtins/builtins.exp: Add -fno-ipa-ra.
+
 2019-07-08  Robin Dapp  <rdapp@linux.ibm.com>
 
        * gcc.target/s390/rotate-truncation-mask.c: New test.
index fb9d3ece181fee3489e1ddd2f72f40dbbf807bb6..d62f78c7a6c52c3adea5e4c216f12765acadf60e 100644 (file)
@@ -37,7 +37,7 @@ load_lib c-torture.exp
 torture-init
 set-torture-options $C_TORTURE_OPTIONS {{}} $LTO_TORTURE_OPTIONS
 
-set additional_flags "-fno-tree-dse -fno-tree-loop-distribute-patterns -fno-tracer"
+set additional_flags "-fno-tree-dse -fno-tree-loop-distribute-patterns -fno-tracer -fno-ipa-ra"
 if [istarget "powerpc-*-darwin*"] {
    lappend additional_flags "-Wl,-multiply_defined,suppress"
 }