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/macro.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/macro.c')
-rw-r--r-- | gas/macro.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gas/macro.c b/gas/macro.c index 5f41c13..b79d922 100644 --- a/gas/macro.c +++ b/gas/macro.c @@ -223,14 +223,13 @@ buffer_and_nest (const char *from, const char *to, sb *ptr, anyway, there's not an obviously better fix here. */ if (strncasecmp (ptr->ptr + i, "linefile", 8) == 0) { - char *saved_input_line_pointer = input_line_pointer; char saved_eol_char = ptr->ptr[ptr->len]; ptr->ptr[ptr->len] = '\0'; - input_line_pointer = ptr->ptr + i + 8; + temp_ilp (ptr->ptr + i + 8); s_app_line (0); + restore_ilp (); ptr->ptr[ptr->len] = saved_eol_char; - input_line_pointer = saved_input_line_pointer; ptr->len = line_start; } } |