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]

gcc.c-torture/compile/981001-4.c broken


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


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