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
2019-04-20  Sandra Loosemore  <san...@codesourcery.com>

	gcc/testsuite/
	* g++.dg/ipa/pr89009.C: Add dg-require-effective-target fpic.
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 "" } */
 

Reply via email to