diff options
author | Steve Chamberlain <steve@cygnus> | 1991-04-19 00:59:53 +0000 |
---|---|---|
committer | Steve Chamberlain <steve@cygnus> | 1991-04-19 00:59:53 +0000 |
commit | 1d45ccb383e222bc6a38ad03275735babe2d4595 (patch) | |
tree | 780d2be71fc38a36c3b48e6ef3904790cca9d70f /ld/ldgram.y | |
parent | df33394f8f9357296f3340403f3629f6331a0fc0 (diff) | |
download | gdb-1d45ccb383e222bc6a38ad03275735babe2d4595.zip gdb-1d45ccb383e222bc6a38ad03275735babe2d4595.tar.gz gdb-1d45ccb383e222bc6a38ad03275735babe2d4595.tar.bz2 |
Yet more diffs due to my incompetence.
Diffstat (limited to 'ld/ldgram.y')
-rw-r--r-- | ld/ldgram.y | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/ld/ldgram.y b/ld/ldgram.y index 304b0b2..c3578b5 100644 --- a/ld/ldgram.y +++ b/ld/ldgram.y @@ -60,9 +60,10 @@ char *current_file; boolean ldgram_want_filename = true; boolean had_script = false; boolean force_make_executable = false; -boolean ldgram_in_expression = false; + boolean ldgram_in_script = false; boolean ldgram_in_defsym = false; +boolean ldgram_had_equals = false; /* LOCALS */ @@ -280,13 +281,13 @@ command_line_option: | OPTION_defsym { ldgram_in_defsym = true; - ldgram_in_expression = true; - + ldgram_had_equals = false; } - assignment + NAME '=' + exp_head { + lang_add_assignment(exp_assop($4,$3,$5)); ldgram_in_defsym = false; - ldgram_in_expression = false; } | '-' NAME { info("%P%F Unrecognised option -%s\n", $2); } @@ -654,14 +655,7 @@ opt_things: ; exp_head: - { - ldgram_in_expression = true; - } - exp - { - ldgram_in_expression = false; - $$ = $2; - } + exp { $$ = $1; } ; opt_exp: |