summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2003-05-18 17:39:45 +0000
committerAndreas Schwab <schwab@suse.de>2003-05-18 17:39:45 +0000
commita6af6a94c0843cc10fa76dc4bbd13505cceeebe5 (patch)
treeeb3dd035699dadce62244936b8cb84bfc1228196
parentb817e65b948089532a0b0ff56d10f804c32e3d36 (diff)
downloadgdb-a6af6a94c0843cc10fa76dc4bbd13505cceeebe5.tar.gz
* c-exp.y (typebase): Remove duplicate occurence of
`SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead of lookup_signed_typename.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/c-exp.y8
2 files changed, 9 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 600f5f4db0a..b9bdadf1a8b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2003-05-18 Mark Kettenis <kettenis@gnu.org>
* dwarf2loc.c (find_location_expression): Change type of second
diff --git a/gdb/c-exp.y b/gdb/c-exp.y
index b8683d7c4ac..34f7729eb5f 100644
--- a/gdb/c-exp.y
+++ b/gdb/c-exp.y
@@ -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): (type-qualifier)* type-specifier */
{ $$ = 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): (type-qualifier)* type-specifier */
{ $$ = 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