------- 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