Patchwork [testsuite] Require LTO support in gcc.dg/ipa/pr48195.c

login
register
mail settings
Submitter Rainer Orth
Date April 18, 2011, 2:28 p.m.
Message ID <ydd7harr5uf.fsf@manam.CeBiTec.Uni-Bielefeld.DE>
Download mbox | patch
Permalink /patch/91765/
State New
Headers show

Comments

Rainer Orth - April 18, 2011, 2:28 p.m.
The new gcc.dg/ipa/pr48195.c testcase fails on Tru64 UNIX:

FAIL: gcc.dg/ipa/pr48195.c (test for excess errors)
Excess errors:
cc1: error: LTO support has not been enabled in this configuration

Fixed as follows.  Tested with the appropriate runtest invocation,
installed on mainline.

	Rainer


2011-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* gcc.dg/ipa/pr48195.c: Add dg-require-effective-target lto.

Patch

Index: gcc/testsuite/gcc.dg/ipa/pr48195.c
===================================================================
--- gcc/testsuite/gcc.dg/ipa/pr48195.c	(revision 172648)
+++ gcc/testsuite/gcc.dg/ipa/pr48195.c	(working copy)
@@ -1,5 +1,6 @@ 
 /* { dg-do link } */
 /* { dg-options "-O2 -flto --param partial-inlining-entry-probability=101" } */
+/* { dg-require-effective-target lto } */
 
 extern void abort(void);