This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc.dg/20070507-1.c lacks target fpic


On Wed, May 09, 2007 at 07:14:34PM +0200, Hans-Peter Nilsson wrote:
> Can you please change so the dg-do run like reads:
> /* { dg-do run { target fpic } } */

I've applied the following patch to GCC 4.1 and mainline. 
Thanks for pointing this out.

Bye,

-Andreas-


2007-05-10  Andreas Krebbel  <krebbel1@de.ibm.com>

	* gcc.dg/20070507-1.c: Disable for non-pic targets.


Index: gcc/testsuite/gcc.dg/20070507-1.c
===================================================================
*** gcc/testsuite/gcc.dg/20070507-1.c.orig	2007-05-10 09:41:03.000000000 +0200
--- gcc/testsuite/gcc.dg/20070507-1.c	2007-05-10 09:46:28.000000000 +0200
***************
*** 3,9 ****
     hoisting an insn from a loop body.  */
  
  /* { dg-options "-O3 -fPIC" } */
! /* { dg-do run } */
  
  typedef __SIZE_TYPE__ size_t;
  int memcmp(const void *s1, const void *s2, size_t n);
--- 3,9 ----
     hoisting an insn from a loop body.  */
  
  /* { dg-options "-O3 -fPIC" } */
! /* { dg-do run { target fpic } } */
  
  typedef __SIZE_TYPE__ size_t;
  int memcmp(const void *s1, const void *s2, size_t n);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]