This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Fix gcc.c-torture/compile/pr25310.c on 16-bit targets
- From: Ulrich Weigand <uweigand at de dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: dj at redhat dot com
- Date: Fri, 13 Jan 2006 22:35:52 +0100 (CET)
- Subject: [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