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

2017-01-12  Sandra Loosemore  <san...@codesourcery.com>

	gcc/testsuite/
	* gcc.dg/pr77862.c: Require fpic target.
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

Reply via email to