This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
gcc.c-torture/compile/981001-4.c broken
- To: egcs-patches at cygnus dot com
- Subject: gcc.c-torture/compile/981001-4.c broken
- From: Andreas Schwab <schwab at issan dot informatik dot uni-dortmund dot de>
- Date: 12 Oct 1998 11:26:46 +0200
What is gcc.c-torture/compile/981001-4.c supposed to test? If it should
test the preprocessor then the use of the GCC extension should be removed.
A single testcase should never test two things at the same time.
1998-10-11 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* compile/981001-4.c: Remove use of GCC extension that triggers a
compiler bug.
--- egcs-2.92/gcc/testsuite/gcc.c-torture/compile/981001-4.c.~1~ Fri Oct 2 03:21:18 1998
+++ egcs-2.92/gcc/testsuite/gcc.c-torture/compile/981001-4.c Sun Oct 11 11:24:48 1998
@@ -1,7 +1,7 @@
#define P(a,b) P1(a,b)
#define P1(a,b) a##b
-#define ONCE(x, y) (x ?: x = y())
+#define ONCE(x, y) (x ?: (x = y()))
#define PREFIX
extern int P(PREFIX, init) (void);
--
Andreas Schwab "And now for something
schwab@issan.cs.uni-dortmund.de completely different"
schwab@gnu.org