diff options
author | Nick Clifton <nickc@redhat.com> | 2017-01-12 14:56:13 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2017-01-12 14:56:13 +0000 |
commit | 1181551ef0a9a7f611a3d1130d2b284280882870 (patch) | |
tree | b40313309126c08dd0958ee0506f41910c2ef9ce /gas/read.h | |
parent | Return -1 on memory error in print_insn_msp430 (diff) | |
download | binutils-gdb-1181551ef0a9a7f611a3d1130d2b284280882870.tar.gz binutils-gdb-1181551ef0a9a7f611a3d1130d2b284280882870.tar.bz2 binutils-gdb-1181551ef0a9a7f611a3d1130d2b284280882870.zip |
Prevent internal assembler errors if a stabs creation function builds an badly formatted input string.
* read.c (temp_ilp): New function. Installs a temporary input
line pointer.
(restore_ilp): New function. Restores the original input line
pointer.
* read.h (temp_ilp): Prototype.
(restore_ilp): Prototype.
* stabs.c (dot_func_p): Use bfd_boolean type.
(generate_asm_file): Use temp_ilp and restore_ilp.
(stabs_generate_asm_lineno): Likewise.
(stabs_generate_asm_endfunc): Likewise.
Diffstat (limited to 'gas/read.h')
-rw-r--r-- | gas/read.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/read.h b/gas/read.h index f1ccf92d6b6..e83118fd69c 100644 --- a/gas/read.h +++ b/gas/read.h @@ -213,3 +213,5 @@ extern void s_xstab (int what); extern void s_rva (int); extern void s_incbin (int); extern void s_weakref (int); +extern void temp_ilp (char *); +extern void restore_ilp (void); |