diff options
author | Trevor Saunders <tbsaunde+binutils@tbsaunde.org> | 2016-03-20 01:37:55 -0400 |
---|---|---|
committer | Trevor Saunders <tbsaunde+binutils@tbsaunde.org> | 2016-03-31 07:30:41 -0400 |
commit | e4a0c708776681a6839c4335f999e45251e7b991 (patch) | |
tree | cf67d12ab29780836e6eba3c6d78700a2e486944 /gold/configure | |
parent | e2c7dcae81a7da1353b7c3d5db210fca479c9c4c (diff) | |
download | gdb-e4a0c708776681a6839c4335f999e45251e7b991.zip gdb-e4a0c708776681a6839c4335f999e45251e7b991.tar.gz gdb-e4a0c708776681a6839c4335f999e45251e7b991.tar.bz2 |
make xtensa_section_rename () take const char *
Xtensa uses it in several macros passing it a literal string, so its convenient
for the argument type to be const char *. However some of the code in
symbols.c seems to assume tc_canonicalize_symbol_name () will return a non
const pointer, and some other target's implementations even modify the
argument, so it seems best to return a char * which means casting away const on
the argument when we return it instead of another string.
gas/ChangeLog:
2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* config/tc-xtensa.c (struct rename_section_struct): Make old_name
const.
(xtensa_section_rename): Make argument type const char *.
* config/tc-xtensa.h (xtensa_section_rename): Adjust.
Diffstat (limited to 'gold/configure')
0 files changed, 0 insertions, 0 deletions