work around get_symbol_name () in sparc and ia64
authorTrevor Saunders <tbsaunde+binutils@tbsaunde.org>
Sun, 28 Feb 2016 22:21:12 +0000 (17:21 -0500)
committerTrevor Saunders <tbsaunde+binutils@tbsaunde.org>
Thu, 31 Mar 2016 11:27:36 +0000 (07:27 -0400)
commite87de5136e9054974b812a362099826fc83e74e9
tree0d12510a4039ec058b9708e894d36aa89be9155d
parent47990a6ab563dbbd51b8394dd027071cec459d2e
work around get_symbol_name () in sparc and ia64

get_symbol_name () returns a char * in a out arg, which means we need to cast
to assign a literal to the variable passed to get_symbol_name ().  It seems
like better APIs than get_symbol_name () could be provided, but that seems like
a fair amount of work so just casting seems to be the betterthing to do for
now.

gas/ChangeLog:

2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>

* config/tc-ia64.c (md_assemble): Add temporary variable to pass to
get_symbol_name ().
* config/tc-sparc.c (s_register): Cast a literal to char * in
assignment.
gas/ChangeLog
gas/config/tc-ia64.c
gas/config/tc-sparc.c