This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Kill reduce/reduce conflicts
- From: Andreas Schwab <schwab at suse dot de>
- To: gdb-patches at sources dot redhat dot com
- Date: 18 May 2003 19:36:55 +0200
- Subject: Kill reduce/reduce conflicts
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