This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/19475] [3.3/3.4/4.0/4.1 Regression] missing whitespace after macro name in C90 or C++
- From: "jakub at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Apr 2005 11:57:58 -0000
- Subject: [Bug preprocessor/19475] [3.3/3.4/4.0/4.1 Regression] missing whitespace after macro name in C90 or C++
- References: <20050116235610.19475.jsm28@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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