Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Kill reduce/reduce conflicts
@ 2003-05-18 17:38 Andreas Schwab
  0 siblings, 0 replies; only message in thread
From: Andreas Schwab @ 2003-05-18 17:38 UTC (permalink / raw)
  To: gdb-patches

This kills 16 reduce/reduce conflicts in the C parser.  Committed as
obvious.

Andreas.

2003-05-18  Andreas Schwab  <schwab@suse.de>

	* c-exp.y (typebase): Remove duplicate occurence of
	`SIGNED_KEYWORD LONG LONG'.  Use builtin_type_long_long instead
	of lookup_signed_typename. 

Index: gdb/c-exp.y
===================================================================
RCS file: /cvs/src/src/gdb/c-exp.y,v
retrieving revision 1.20
diff -u -a -p -r1.20 c-exp.y
--- gdb/c-exp.y	14 May 2003 17:43:16 -0000	1.20
+++ gdb/c-exp.y	18 May 2003 17:15:30 -0000
@@ -1,6 +1,6 @@
 /* YACC parser for C expressions, for GDB.
    Copyright 1986, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
-   1998, 1999, 2000
+   1998, 1999, 2000, 2003
    Free Software Foundation, Inc.
 
 This file is part of GDB.
@@ -831,6 +831,8 @@ typebase  /* Implements (approximately):
 			{ $$ = builtin_type_long_long; }
 	|	SIGNED_KEYWORD LONG LONG
 			{ $$ = builtin_type_long_long; }
+	|	SIGNED_KEYWORD LONG LONG INT_KEYWORD
+			{ $$ = builtin_type_long_long; }
 	|	UNSIGNED LONG LONG
 			{ $$ = builtin_type_unsigned_long_long; }
 	|	UNSIGNED LONG LONG INT_KEYWORD
@@ -839,10 +841,6 @@ typebase  /* Implements (approximately):
 			{ $$ = builtin_type_unsigned_long_long; }
 	|	LONG LONG UNSIGNED INT_KEYWORD
 			{ $$ = builtin_type_unsigned_long_long; }
-	|	SIGNED_KEYWORD LONG LONG
-			{ $$ = lookup_signed_typename ("long long"); }
-	|	SIGNED_KEYWORD LONG LONG INT_KEYWORD
-			{ $$ = lookup_signed_typename ("long long"); }
 	|	SHORT INT_KEYWORD
 			{ $$ = builtin_type_short; }
 	|	SHORT SIGNED_KEYWORD INT_KEYWORD


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-18 17:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-18 17:38 Kill reduce/reduce conflicts Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox