]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix failing gcc.target/avr/torture/builtins_error.c
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
Mon, 3 Oct 2016 12:08:27 +0000 (12:08 +0000)
committerSenthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
Mon, 3 Oct 2016 12:08:27 +0000 (12:08 +0000)
The compiler defaults to thin LTO objects if built with linker plugin
support, and in that case, the error expected by the testcase appears
only at link time, if at all. Forcing fat LTO object file creation
generates the error consistently at compile time, as expected.

gcc/testsuite/ChangeLog:

2016-10-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>

* gcc.target/avr/torture/builtins-error.c: Add -ffat-lto-objects
option.

From-SVN: r240711

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/avr/torture/builtins-error.c

index 329da07bf04438792c936d0458fd54177a585775..d0ed6a679b4a710a1d16f83f7d5b10e168c4d0d0 100644 (file)
@@ -1,3 +1,8 @@
+2016-10-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
+
+       * gcc.target/avr/torture/builtins-error.c: Add -ffat-lto-objects
+       option.
+
 2016-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
 
        Revert
index 692b8afd859833c9c00b8ba767430363aa7b9300..94100c95f3584ee7a0d121049811e730397e2900 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do assemble } */
+/* { dg-options "-ffat-lto-objects" } */
 
 char insert (long a)
 {