diff options
author | Alan Modra <amodra@gmail.com> | 2019-03-18 22:34:36 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-03-18 22:39:55 +1030 |
commit | af60449c260235478f9b1f9db39a587fe4c75290 (patch) | |
tree | 2bd898fb2084bbe4e83cd6587f1309a85c5b4ae2 /gas/as.c | |
parent | c6cdff46c9d35e0c811e179fc6642ed71473bc66 (diff) | |
download | gdb-af60449c260235478f9b1f9db39a587fe4c75290.zip gdb-af60449c260235478f9b1f9db39a587fe4c75290.tar.gz gdb-af60449c260235478f9b1f9db39a587fe4c75290.tar.bz2 |
Use temp_ilp and restore_ilp in more places
* as.c (macro_expr): Use temp_ilp and restore_ilp.
* macro.c (buffer_and_nest): Likewise.
* read.c (temp_ilp): Remove FIXME.
Diffstat (limited to 'gas/as.c')
-rw-r--r-- | gas/as.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -1102,16 +1102,14 @@ close_output_file (void) static size_t macro_expr (const char *emsg, size_t idx, sb *in, offsetT *val) { - char *hold; expressionS ex; sb_terminate (in); - hold = input_line_pointer; - input_line_pointer = in->ptr + idx; + temp_ilp (in->ptr + idx); expression_and_evaluate (&ex); idx = input_line_pointer - in->ptr; - input_line_pointer = hold; + restore_ilp (); if (ex.X_op != O_constant) as_bad ("%s", emsg); |