Hi, This patch adds -ffat-lto-objects option to an avr target testcase.
The compiler defaults to thin LTO objects if built with linker plugin support, and 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, as expected. Committed to trunk. Regards Senthil gcc/testsuite/ChangeLog: 2016-10-03 Senthil Kumar Selvaraj <senthil_kumar.selva...@atmel.com> * gcc.target/avr/torture/builtins-error.c: Add -ffat-lto-objects option. Index: gcc/testsuite/gcc.target/avr/torture/builtins-error.c =================================================================== --- gcc/testsuite/gcc.target/avr/torture/builtins-error.c (revision 240709) +++ gcc/testsuite/gcc.target/avr/torture/builtins-error.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do assemble } */ +/* { dg-options "-ffat-lto-objects" } */ char insert (long a) {