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

Message ID 87k2dp8wsy.fsf@atmel.com
State New
Headers show

Commit Message

Senthil Kumar Selvaraj Oct. 3, 2016, 12:02 p.m.
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.

Patch

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)
 {