From d07b0a23a5b00c9f51ff052f60c911013f036a7c Mon Sep 17 00:00:00 2001 From: Senthil Kumar Selvaraj Date: Mon, 3 Oct 2016 12:08:27 +0000 Subject: [PATCH] Fix failing gcc.target/avr/torture/builtins_error.c 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 * gcc.target/avr/torture/builtins-error.c: Add -ffat-lto-objects option. From-SVN: r240711 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/avr/torture/builtins-error.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 329da07bf04..d0ed6a679b4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-10-03 Senthil Kumar Selvaraj + + * gcc.target/avr/torture/builtins-error.c: Add -ffat-lto-objects + option. + 2016-10-03 Kyrylo Tkachov Revert diff --git a/gcc/testsuite/gcc.target/avr/torture/builtins-error.c b/gcc/testsuite/gcc.target/avr/torture/builtins-error.c index 692b8afd859..94100c95f35 100644 --- a/gcc/testsuite/gcc.target/avr/torture/builtins-error.c +++ b/gcc/testsuite/gcc.target/avr/torture/builtins-error.c @@ -1,4 +1,5 @@ /* { dg-do assemble } */ +/* { dg-options "-ffat-lto-objects" } */ char insert (long a) { -- 2.30.2