[Patch, testsuite] Add ffat-lto-objects to gcc.target/avr/torture/builtins_error.c

Senthil Kumar Selvaraj senthil_kumar.selvaraj@atmel.com
Mon Oct 3 12:04:00 GMT 2016


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.selvaraj@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)
 {



More information about the Gcc-patches mailing list