diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2002-04-23 02:06:54 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2002-04-23 02:06:54 +0000 |
commit | b2c4da8122c59a96c83c1731d6c973cde730f670 (patch) | |
tree | feff5118bc3f616a8f7cf56e63bb38c8c2e80edd /gdb/c-exp.y | |
parent | f267bd6a08884780c05098c28dc1192e802d86ef (diff) | |
download | gdb-b2c4da8122c59a96c83c1731d6c973cde730f670.zip gdb-b2c4da8122c59a96c83c1731d6c973cde730f670.tar.gz gdb-b2c4da8122c59a96c83c1731d6c973cde730f670.tar.bz2 |
2002-04-22 H.J. Lu (hjl@gnu.org)
* c-exp.y (typebase): Support
[long|long long|short] [signed|unsigned] [int|]
and
signed [long|long long|short] int
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r-- | gdb/c-exp.y | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y index 3d2d1aa..0ccac03 100644 --- a/gdb/c-exp.y +++ b/gdb/c-exp.y @@ -807,24 +807,52 @@ typebase /* Implements (approximately): (type-qualifier)* type-specifier */ { $$ = builtin_type_short; } | LONG INT_KEYWORD { $$ = builtin_type_long; } + | LONG SIGNED_KEYWORD INT_KEYWORD + { $$ = builtin_type_long; } + | LONG SIGNED_KEYWORD + { $$ = builtin_type_long; } + | SIGNED_KEYWORD LONG INT_KEYWORD + { $$ = builtin_type_long; } | UNSIGNED LONG INT_KEYWORD { $$ = builtin_type_unsigned_long; } + | LONG UNSIGNED INT_KEYWORD + { $$ = builtin_type_unsigned_long; } + | LONG UNSIGNED + { $$ = builtin_type_unsigned_long; } | LONG LONG { $$ = builtin_type_long_long; } | LONG LONG INT_KEYWORD { $$ = builtin_type_long_long; } + | LONG LONG SIGNED_KEYWORD INT_KEYWORD + { $$ = builtin_type_long_long; } + | LONG LONG SIGNED_KEYWORD + { $$ = builtin_type_long_long; } + | SIGNED_KEYWORD LONG LONG + { $$ = builtin_type_long_long; } | UNSIGNED LONG LONG { $$ = builtin_type_unsigned_long_long; } | UNSIGNED LONG LONG INT_KEYWORD { $$ = builtin_type_unsigned_long_long; } + | LONG LONG UNSIGNED + { $$ = 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 + { $$ = builtin_type_short; } + | SHORT SIGNED_KEYWORD + { $$ = builtin_type_short; } | UNSIGNED SHORT INT_KEYWORD { $$ = builtin_type_unsigned_short; } + | SHORT UNSIGNED + { $$ = builtin_type_unsigned_short; } + | SHORT UNSIGNED INT_KEYWORD + { $$ = builtin_type_unsigned_short; } | DOUBLE_KEYWORD { $$ = builtin_type_double; } | LONG DOUBLE_KEYWORD |