aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>2016-10-03 12:08:27 +0000
committerSenthil Kumar Selvaraj <saaadhu@gcc.gnu.org>2016-10-03 12:08:27 +0000
commitd07b0a23a5b00c9f51ff052f60c911013f036a7c (patch)
tree70f57db8271ac9285225eb0b279aa58dcc33a051
parent6a0d23af49e16577418566ab4fb165fea2efe286 (diff)
downloadgcc-d07b0a23a5b00c9f51ff052f60c911013f036a7c.zip
gcc-d07b0a23a5b00c9f51ff052f60c911013f036a7c.tar.gz
gcc-d07b0a23a5b00c9f51ff052f60c911013f036a7c.tar.bz2
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 <senthil_kumar.selvaraj@atmel.com> * gcc.target/avr/torture/builtins-error.c: Add -ffat-lto-objects option. From-SVN: r240711
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.target/avr/torture/builtins-error.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 329da07..d0ed6a6 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
diff --git a/gcc/testsuite/gcc.target/avr/torture/builtins-error.c b/gcc/testsuite/gcc.target/avr/torture/builtins-error.c
index 692b8af..94100c9 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)
{