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]
Other format: [Raw text]

Re: [distcc] gcc bootstraps with distcc


On Aug  5, 2003, Alexandre Oliva <aoliva@redhat.com> wrote:

>> However, please modify the testcase.

> Will do.

Ok to install?

Index: gcc/testsuite/ChangeLog
from  Alexandre Oliva  <aoliva@redhat.com>

	* gcc.dg/cpp/spacing1.c: Update.

Index: gcc/testsuite/gcc.dg/cpp/spacing1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/cpp/spacing1.c,v
retrieving revision 1.4
diff -u -p -r1.4 spacing1.c
--- gcc/testsuite/gcc.dg/cpp/spacing1.c 2 Jun 2003 19:21:15 -0000 1.4
+++ gcc/testsuite/gcc.dg/cpp/spacing1.c 5 Aug 2003 21:07:13 -0000
@@ -10,6 +10,19 @@
 
    Neil Booth, 1 Dec 2000, 23 Sep 2001.  */
 
+/* The actual location of the expansion of a multi-line macro
+   invocation is not defined: we might consider them to be in the same
+   line as the initial token of the invocation, or as the final token
+   of the invocation, or even anything in between.  We choose to make
+   it the final token, but we might as well collapse the invocation
+   and the rest of the line into the initial line, such that `g
+   ... bam baz' below were all in a single line in the preprocessor
+   output.  We used to do this at some point, but it disagreed with
+   the way we numbered lines with the integrated preprocessor, so we
+   had to pick one of them to change.
+
+   Alexandre Oliva, Aug 5, 2003.  */
+
 #define str(x) #x
 #define f(x) x
 #define glue(x, y) x ## y
@@ -28,8 +41,12 @@
 B Q B Q A Q A:
 f
 bar
-g "1 2" bam baz
+g
+
+
 
+ "1 2"
+ bam baz
 */
 
 glue (EMPTY 4, 4) EMPTY;
@@ -47,4 +64,6 @@ f (g) str
    { dg-final { scan-file spacing1.i "B Q B Q A Q A:" } }
    { dg-final { scan-file-not spacing1.i "f\[^\n\]*bar" } }
    { dg-final { scan-file spacing1.i "(^|\n)bar" } }
-   { dg-final { scan-file spacing1.i "g \"1 2\" bam baz" } } */
+   { dg-final { scan-file spacing1.i "(^|\n)g($|\n)" } }
+   { dg-final { scan-file spacing1.i "(^|\n) \"1 2\"" } }
+   { dg-final { scan-file spacing1.i "(^|\n) bam baz" } } */
-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer

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