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]

[committed] Fix gcc.c-torture/compile/pr25310.c on 16-bit targets


Hello,

DJ Delorie noticed that the test case gcc.c-torture/compile/pr25310.c
which I recently added breaks on 16-bit targets.  Fixed by the following
patch.

Tested on s390-ibm-linux, committed to mainline and 4.1 as obvious.

Bye,
Ulrich

ChangeLog:

	* gcc.c-torture/compile/pr25310.c: Disable test on 16-bit targets.

Index: gcc/testsuite/gcc.c-torture/compile/pr25310.c
===================================================================
*** gcc/testsuite/gcc.c-torture/compile/pr25310.c	(revision 109671)
--- gcc/testsuite/gcc.c-torture/compile/pr25310.c	(working copy)
***************
*** 1,4 ****
--- 1,7 ----
  
+ /* Prevent spurious test failures on 16-bit targets.  */
+ #if __INT_MAX__ >= 2147483647L
+ 
  extern int f (char *, int);
  
  void test (void)
*************** void test (void)
*** 15,17 ****
--- 18,22 ----
      bufptr += bytes;
  }
  
+ #endif
+ 
-- 
  Dr. Ulrich Weigand
  Linux on zSeries Development
  Ulrich.Weigand@de.ibm.com


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