Patchwork [testsuite] Require lto for g++.dg/ipa/pr46984.C

login
register
mail settings
Submitter Rainer Orth
Date Jan. 10, 2011, 7:02 p.m.
Message ID <yddei8kzino.fsf@manam.CeBiTec.Uni-Bielefeld.DE>
Download mbox | patch
Permalink /patch/78195/
State New
Headers show

Comments

Rainer Orth - Jan. 10, 2011, 7:02 p.m.
The new testcase g++.dg/ipa/pr46984.C is failing on alpha-dec-osf5.1b:

FAIL: g++.dg/ipa/pr46984.C (test for excess errors)
WARNING: g++.dg/ipa/pr46984.C compilation failed to produce executable

Excess errors:
cc1plus: error: LTO support has not been enabled in this configuration

Fixed by the following patch, tested with the appropriate runtest
invocation, installed as obvious.

	Rainer


2011-01-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* g++.dg/ipa/pr46984.C: Add dg-require-effective-target lto.

Patch

Index: g++.dg/ipa/pr46984.C
===================================================================
--- g++.dg/ipa/pr46984.C        (revision 168635)
+++ g++.dg/ipa/pr46984.C        (working copy)
@@ -1,5 +1,6 @@ 
 // { dg-options "-O -fipa-cp -fno-early-inlining -flto" }
 // { dg-do run }
+// { dg-require-effective-target lto }
 
 extern "C" void abort ();