aboutsummaryrefslogtreecommitdiff
path: root/gas/as.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-03-18 22:34:36 +1030
committerAlan Modra <amodra@gmail.com>2019-03-18 22:39:55 +1030
commitaf60449c260235478f9b1f9db39a587fe4c75290 (patch)
tree2bd898fb2084bbe4e83cd6587f1309a85c5b4ae2 /gas/as.c
parentc6cdff46c9d35e0c811e179fc6642ed71473bc66 (diff)
downloadgdb-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.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gas/as.c b/gas/as.c
index 728811b..c7bdf0c 100644
--- a/gas/as.c
+++ b/gas/as.c
@@ -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);