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: Speed up some token processing


Ben Elliston wrote:


I'm seeing testsuite failures on powerpc-linux with this patch (with and without your ammendments to the testsuite):

Running /home/bje/source/gcc-mainline/gcc/testsuite/gcc.dg/cpp/cpp.exp ...
FAIL: gcc.dg/cpp/direct2.c  (test for errors, line 15)
FAIL: gcc.dg/cpp/direct2.c (test for excess errors)
FAIL: gcc.dg/cpp/direct2s.c  (test for errors, line 17)
FAIL: gcc.dg/cpp/direct2s.c (test for excess errors)

Appears to be different bison parse/syntax errors. Hopefully fixed with the attached.

nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk

2004-10-27  Nathan Sidwell  <nathan@codesourcery.com>

	* gcc.dg/cpp/direct2.c: Cope with different bison 'parse' or
	'syntax' error messages.
	* gcc.dg/cpp/direct2s.c: Likewise.

Index: testsuite/gcc.dg/cpp/direct2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/cpp/direct2.c,v
retrieving revision 1.3
diff -c -3 -p -r1.3 direct2.c
*** testsuite/gcc.dg/cpp/direct2.c	26 Oct 2004 09:20:14 -0000	1.3
--- testsuite/gcc.dg/cpp/direct2.c	27 Oct 2004 09:29:05 -0000
***************
*** 12,18 ****
  
  HASH include "somerandomfile" /*{ dg-error "stray" "non-include" }*/
  /*{ dg-bogus "No such" "don't execute non-include" { target *-*-* } 13 }*/
! int resync_parser_1; /*{ dg-error "parse" "" }*/
  
  HASHINCLUDE <somerandomfile> /*{ dg-error "stray" "non-include 2" }*/
  /*{ dg-bogus "No such" "don't execute non-include 2" { target *-*-* } 17 }*/
--- 12,18 ----
  
  HASH include "somerandomfile" /*{ dg-error "stray" "non-include" }*/
  /*{ dg-bogus "No such" "don't execute non-include" { target *-*-* } 13 }*/
! int resync_parser_1; /*{ dg-error "parse|syntax" "" }*/
  
  HASHINCLUDE <somerandomfile> /*{ dg-error "stray" "non-include 2" }*/
  /*{ dg-bogus "No such" "don't execute non-include 2" { target *-*-* } 17 }*/
*************** int resync_parser_2;
*** 20,32 ****
  
  void g1 ()
  {
! HASH define X 1 /* { dg-error "stray|undeclared|parse|for each" "# from macro" } */
    int resync_parser_3;
  }
  
  void g2 ()
  {
! HASHDEFINE  Y 1 /* { dg-error "stray|undeclared|parse|for each" "#define from macro" } */
    int resync_parser_4;
  }
  
--- 20,32 ----
  
  void g1 ()
  {
! HASH define X 1 /* { dg-error "stray|undeclared|parse|syntax|for each" "# from macro" } */
    int resync_parser_3;
  }
  
  void g2 ()
  {
! HASHDEFINE  Y 1 /* { dg-error "stray|undeclared|parse|syntax|for each" "#define from macro" } */
    int resync_parser_4;
  }
  
Index: testsuite/gcc.dg/cpp/direct2s.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/cpp/direct2s.c,v
retrieving revision 1.3
diff -c -3 -p -r1.3 direct2s.c
*** testsuite/gcc.dg/cpp/direct2s.c	26 Oct 2004 09:20:14 -0000	1.3
--- testsuite/gcc.dg/cpp/direct2s.c	27 Oct 2004 09:29:05 -0000
***************
*** 14,20 ****
  
  HASH include "somerandomfile" /*{ dg-error "stray" "non-include" }*/
  /*{ dg-bogus "No such" "don't execute non-include" { target *-*-* } 15 }*/
! int resync_parser_1; /*{ dg-error "parse" "" }*/
  
  HASHINCLUDE <somerandomfile> /*{ dg-error "stray" "non-include 2" }*/
  /*{ dg-bogus "No such" "don't execute non-include 2" { target *-*-* } 18 }*/
--- 14,20 ----
  
  HASH include "somerandomfile" /*{ dg-error "stray" "non-include" }*/
  /*{ dg-bogus "No such" "don't execute non-include" { target *-*-* } 15 }*/
! int resync_parser_1; /*{ dg-error "parse|syntax" "" }*/
  
  HASHINCLUDE <somerandomfile> /*{ dg-error "stray" "non-include 2" }*/
  /*{ dg-bogus "No such" "don't execute non-include 2" { target *-*-* } 18 }*/
*************** int resync_parser_2;
*** 22,34 ****
  
  void g1 ()
  {
! HASH define X 1 /* { dg-error "stray|undeclared|parse|for each" "# from macro" } */
    int resync_parser_3;
  }
  
  void g2 ()
  {
! HASHDEFINE  Y 1 /* { dg-error "stray|undeclared|parse|for each" "#define from macro" } */
    int resync_parser_4;
  }
  
--- 22,34 ----
  
  void g1 ()
  {
! HASH define X 1 /* { dg-error "stray|undeclared|parse|syntax|for each" "# from macro" } */
    int resync_parser_3;
  }
  
  void g2 ()
  {
! HASHDEFINE  Y 1 /* { dg-error "stray|undeclared|parse|syntax|for each" "#define from macro" } */
    int resync_parser_4;
  }
  

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