diff options
author | Trevor Saunders <tbsaunde+binutils@tbsaunde.org> | 2016-03-19 21:48:07 -0400 |
---|---|---|
committer | Trevor Saunders <tbsaunde+binutils@tbsaunde.org> | 2016-03-24 08:00:44 -0400 |
commit | e742e119e1a37c642240195d6b942d624120df82 (patch) | |
tree | 0c909db79bcafb05e69de1e56e977f47c09cacda /gdb/m32r-linux-tdep.c | |
parent | eda6e9a4a274e5b9d551d6251e55c5d2e88af643 (diff) | |
download | gdb-e742e119e1a37c642240195d6b942d624120df82.zip gdb-e742e119e1a37c642240195d6b942d624120df82.tar.gz gdb-e742e119e1a37c642240195d6b942d624120df82.tar.bz2 |
make microblaze build with -Wwrite-strings
frag_var () assigns its last argument to frag::fr_opcode, and it turns out
some targets modify the string that points to. However it appears niether the
generic code or the microblaze code modifies what fr_opcode points to, so this
code should be safe. So we unfortunately need to cast to char * when passing
an argument to frag_var () but otherwise microblaze can itself point to these
strings with const char *.
gas/ChangeLog:
2016-03-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* config/tc-microblaze.c (md_assemble): Cast opc to char * when calling
frag_var ().
Diffstat (limited to 'gdb/m32r-linux-tdep.c')
0 files changed, 0 insertions, 0 deletions