This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA] c-exp.y -- accept "(signed long long)"
- To: gdb-patches at sources dot redhat dot com
- Subject: [RFA] c-exp.y -- accept "(signed long long)"
- From: Michael Snyder <msnyder at cygnus dot com>
- Date: Fri, 21 Sep 2001 16:01:51 -0700
- CC: taylor at candd dot org
- Organization: Red Hat
Minor enhancement -- teach the parser to accept (signed long long)
type expression. This isn't the most elegant way, and indeed it
suggests further factorization that could be done, but it's the
minimal change that works.
2001-09-21 Michael Snyder <msnyder@redhat.com>
* c-exp.y (typebase): Accept (signed long long) as a type expr.
Index: c-exp.y
===================================================================
RCS file: /cvs/src/src/gdb/c-exp.y,v
retrieving revision 1.4
diff -c -3 -p -r1.4 c-exp.y
*** c-exp.y 2001/03/06 08:21:06 1.4
--- c-exp.y 2001/09/21 22:59:09
*************** typebase /* Implements (approximately):
*** 812,817 ****
--- 812,821 ----
{ $$ = builtin_type_unsigned_long_long; }
| UNSIGNED LONG LONG 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; }
| UNSIGNED SHORT INT_KEYWORD