aboutsummaryrefslogtreecommitdiff
path: root/gas/stabs.c
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-03-23 22:39:13 -0400
committerTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-03-28 20:38:24 -0400
commit82b8a7851fb9d7724c53d13a4319d1e47acc4460 (patch)
treecca10abb478f1090c8a00eb0bffb510af1ba88ff /gas/stabs.c
parent5fa9f97233e5c75d4c70f6a86f558eadfed3696e (diff)
downloadgdb-82b8a7851fb9d7724c53d13a4319d1e47acc4460.zip
gdb-82b8a7851fb9d7724c53d13a4319d1e47acc4460.tar.gz
gdb-82b8a7851fb9d7724c53d13a4319d1e47acc4460.tar.bz2
add more const qualifiers
gas/ChangeLog: 2016-03-28 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> * config/obj-elf.c (obj_elf_section_name): Return const char *. * config/obj-elf.h (obj_elf_section_name): Adjust. * config/tc-aarch64.c (aarch64_parse_features): Likewise. (aarch64_parse_cpu): Likewise. (aarch64_parse_arch): Likewise. * config/tc-arm.c (arm_parse_extension): Likewise. (arm_parse_cpu): Likewise. (arm_parse_arch): Likewise. * config/tc-nds32.c: Likewise. * config/xtensa-relax.c (parse_special_fn): Likewise. * stabs.c (generate_asm_file): Likewise.
Diffstat (limited to 'gas/stabs.c')
-rw-r--r--gas/stabs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/stabs.c b/gas/stabs.c
index c489af0..8d54f73 100644
--- a/gas/stabs.c
+++ b/gas/stabs.c
@@ -545,7 +545,7 @@ generate_asm_file (int type, const char *file)
while (tmp < file_endp)
{
- char *bslash = strchr (tmp, '\\');
+ const char *bslash = strchr (tmp, '\\');
size_t len = (bslash) ? (size_t) (bslash - tmp + 1) : strlen (tmp);
/* Double all backslashes, since demand_copy_C_string (used by