public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [testsuite, committed] require fpic support for g++.dg/ipa/pr64146.C
@ 2015-03-12  1:46 Sandra Loosemore
  0 siblings, 0 replies; only message in thread
From: Sandra Loosemore @ 2015-03-12  1:46 UTC (permalink / raw)
  To: GCC Patches

[-- Attachment #1: Type: text/plain, Size: 495 bytes --]

I noticed that g++.dg/ipa/pr64146.C was FAILing on nios2-elf because 
this target doesn't support -fpic; the ABI defines the PIC relocations 
for GNU/Linux only, so -fpic gives a "sorry" in the bare-metal toolchain.

 From reading the PR, my understanding is that the bug is specific to 
PIC and the behavior being tested for in the testcase is also specific 
to PIC, so I think the attached patch to skip the test if PIC isn't 
supported qualifies as obvious, and I've checked it in.

-Sandra


[-- Attachment #2: testsuite.log --]
[-- Type: text/x-log, Size: 120 bytes --]

2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/testsuite/
	* g++.dg/ipa/pr64146.C: Require fpic support.

[-- Attachment #3: testsuite.patch --]
[-- Type: text/x-patch, Size: 427 bytes --]

Index: gcc/testsuite/g++.dg/ipa/pr64146.C
===================================================================
--- gcc/testsuite/g++.dg/ipa/pr64146.C	(revision 221276)
+++ gcc/testsuite/g++.dg/ipa/pr64146.C	(working copy)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-require-alias "" } */
+/* { dg-require-effective-target fpic } */
 /* { dg-options "-fpic -fdump-ipa-icf-details -fipa-icf"  } */
 
 extern "C" const char*

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-03-12  1:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-12  1:46 [testsuite, committed] require fpic support for g++.dg/ipa/pr64146.C Sandra Loosemore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).