diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0e0332513ef2..fc0d3dcb9c38 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2018-04-26 Maciej W. Rozycki + + * gcc.target/mips/data-sym-pool.c (dg-options): Add `-mplt'. + 2018-04-26 Eric Botcazou * gnat.dg/loop_optimization24.adb: New test. diff --git a/gcc/testsuite/gcc.target/mips/data-sym-pool.c b/gcc/testsuite/gcc.target/mips/data-sym-pool.c index 805778322e92..c73c8adb9caf 100644 --- a/gcc/testsuite/gcc.target/mips/data-sym-pool.c +++ b/gcc/testsuite/gcc.target/mips/data-sym-pool.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mips16 -mcode-readable=yes" } */ +/* { dg-options "-mips16 -mcode-readable=yes -mplt" } */ int frob (void) @@ -20,6 +20,10 @@ $L3: # The label must match. __pend_frob_3: # The symbol must match. .insn - that is `__pool_*'/`__pend_*' symbols inserted around a constant pool. */ + that is `__pool_*'/`__pend_*' symbols inserted around a constant pool. + + This code is built with `-mplt' to prevent the special `__gnu_local_gp' + symbol from being placed in the constant pool at `-O0' for SVR4 code + and consequently interfering with test expectations. */ /* { dg-final { scan-assembler "\tlw\t\\\$\[0-9\]+,(.L(\[0-9\]+))\n.*\t\\.type\t(__pool_frob_\\2), @object\n\\3:\n\t\\.align\t2\n\\1:\n\t\\.word\t305419896\n\t\\.type\t(__pend_frob_\\2), @function\n\\4:\n\t\\.insn\n" } } */