[testsuite] make g++.dg/ipa/pr89009.C require fpic effective target

Message ID d72979fb-e9ee-8fa5-c678-53bcbbd1bca3@codesourcery.com
State New
Headers show
Series
  • [testsuite] make g++.dg/ipa/pr89009.C require fpic effective target
Related show

Commit Message

Sandra Loosemore April 21, 2019, 2:06 a.m.
I've checked in the attached patch as obvious, to clean up some test 
failures on nios2-elf.  (The nios2 PSABI only defines PIC relocations 
for GNU/Linux targets so gcc rejects -fpic when compiling for bare-metal 
target.)

-Sandra

Patch

Index: gcc/testsuite/g++.dg/ipa/pr89009.C
===================================================================
--- gcc/testsuite/g++.dg/ipa/pr89009.C	(revision 270475)
+++ gcc/testsuite/g++.dg/ipa/pr89009.C	(working copy)
@@ -1,5 +1,6 @@ 
 /* PR ipa/89009 */
 /* { dg-do run } */
+/* { dg-require-effective-target fpic } */
 /* { dg-options "-fpic -O2 -fno-inline" } */
 /* { dg-require-visibility "" } */