[testsuite,committed] gcc.dg/pr77862.c requires fpic target

Message ID 587807D5.8010902@codesourcery.com
State New
Headers show

Commit Message

Sandra Loosemore Jan. 12, 2017, 10:48 p.m.
gcc.dg/pr77862.c was failing on targets that don't support -fPIC, 
specifically nios2-elf.  I've fixed this with a 
dg-require-effective-target restriction, consistent with what similar 
testcases do (e.g., gcc.dg/pic-2.c).

Committed as obvious.

-Sandra

Patch hide | download patch | download mbox

Index: gcc/testsuite/gcc.dg/pr77862.c
===================================================================
--- gcc/testsuite/gcc.dg/pr77862.c	(revision 244386)
+++ gcc/testsuite/gcc.dg/pr77862.c	(working copy)
@@ -1,6 +1,7 @@ 
 
 /* PR tree-optimization/77862 */
 /* { dg-do compile } */
+/* { dg-require-effective-target fpic } */
 /* { dg-options "-O2 -fPIC -w" } */
 
 struct paramed_type