diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-01-06 19:38:36 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-01-06 19:38:36 +0000 |
commit | c477527cbba110e90f3ef2ff059d26b97ec3ed2f (patch) | |
tree | 4e2781924b058ef41d82e2fba2e3c642dc229864 /ld/ldgram.y | |
parent | 45dc9be38877cbb8218182b5c5ebd6e82e5ccd47 (diff) | |
download | gdb-c477527cbba110e90f3ef2ff059d26b97ec3ed2f.zip gdb-c477527cbba110e90f3ef2ff059d26b97ec3ed2f.tar.gz gdb-c477527cbba110e90f3ef2ff059d26b97ec3ed2f.tar.bz2 |
* ld.h (QUAD_SIZE): Define.
* ldgram.y (QUAD): New token.
(length): Handle it.
* ldlex.l: Return QUAD.
* lexsup.c (keywords): Add QUAD.
* ldwrite.c (build_link_order): Handle QUAD.
* ldlang.c (print_data_statement): Handle QUAD.
(lang_size_sections): Likewise.
(lang_do_assignments): Likewise.
* ldexp.c (exp_print_token): Add QUAD to table.
* ld.texinfo: Describe QUAD.
Diffstat (limited to 'ld/ldgram.y')
-rw-r--r-- | ld/ldgram.y | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/ld/ldgram.y b/ld/ldgram.y index 705d739..b66a099 100644 --- a/ld/ldgram.y +++ b/ld/ldgram.y @@ -107,7 +107,7 @@ static int error_index; %right UNARY %token END %left <token> '(' -%token <token> ALIGN_K BLOCK LONG SHORT BYTE +%token <token> ALIGN_K BLOCK QUAD LONG SHORT BYTE %token SECTIONS %token '{' '}' %token SIZEOF_HEADERS OUTPUT_FORMAT FORCE_COMMON_ALLOCATION OUTPUT_ARCH @@ -635,7 +635,9 @@ statement_list_opt: ; length: - LONG + QUAD + { $$ = $1; } + | LONG { $$ = $1; } | SHORT { $$ = $1; } @@ -897,10 +899,10 @@ memspec_opt: %% void yyerror(arg) -char *arg; + const char *arg; { - if (error_index> 0 && error_index < ERROR_NAME_MAX) - einfo("%P%F: %S syntax error in %s\n",error_names[error_index-1]); + if (error_index > 0 && error_index < ERROR_NAME_MAX) + einfo("%P%F: %S %s in %s\n", arg, error_names[error_index-1]); else - einfo("%P%F: %S syntax error\n"); + einfo("%P%F: %S %s\n", arg); } |