This is the mail archive of the gcc-bugs@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]

[Bug preprocessor/19475] [3.3/3.4/4.0/4.1 Regression] missing whitespace after macro name in C90 or C++


------- Additional Comments From jakub at redhat dot com  2005-04-05 11:57 -------
Subject: Re: [PATCH] Fix PR preprocessor/19475

On Tue, Apr 05, 2005 at 08:32:58PM +0900, Neil Booth wrote:
> Jakub Jelinek wrote:-
> 
> > Is there some limitation on how many bytes or error messages
> > dejagnu groks or something?
> 
> I think it gets confused by the column numbers; if you add
> -fno-columns (or whatever it is) the problem would probably 
> go away.

Thanks, you're right.  With following incremental patch
it passes just fine (and fails with cc1 built without the patch).

diff -u gcc/testsuite/gcc.dg/cpp/macspace2.c gcc/testsuite/gcc.dg/cpp/macspace2.c
--- gcc/testsuite/gcc.dg/cpp/macspace2.c	2005-04-05 11:46:41.000000000 +0200
+++ gcc/testsuite/gcc.dg/cpp/macspace2.c	2005-04-05 13:51:02.000000000 +0200
@@ -1,6 +1,6 @@
 /* PR preprocessor/19475 */
 /* { dg-do preprocess } */
-/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
+/* { dg-options "-std=iso9899:1999 -pedantic-errors -fno-show-column" } */
 
 #define a!		/* { dg-error "requires whitespace" } */
 #define b"		/* { dg-error "requires whitespace" } */
diff -u gcc/testsuite/gcc.dg/cpp/macspace1.c gcc/testsuite/gcc.dg/cpp/macspace1.c
--- gcc/testsuite/gcc.dg/cpp/macspace1.c	2005-04-05 11:54:16.000000000 +0200
+++ gcc/testsuite/gcc.dg/cpp/macspace1.c	2005-04-05 13:50:54.000000000 +0200
@@ -1,6 +1,6 @@
 /* PR preprocessor/19475 */
 /* { dg-do preprocess } */
-/* { dg-options "-std=iso9899:1990 -pedantic-errors" } */
+/* { dg-options "-std=iso9899:1990 -pedantic-errors -fno-show-column" } */
 
 #define a!		/* { dg-warning "missing whitespace" } */
 #define b"		/* { dg-warning "missing whitespace" } */


	Jakub


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19475


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