xtensa: gas: clean up literal management code
authorMax Filippov <jcmvbkbc@gmail.com>
Wed, 10 Apr 2019 08:18:01 +0000 (01:18 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Thu, 11 Apr 2019 18:40:52 +0000 (11:40 -0700)
commitf8aecf3cc9a3c71a0fb9a8ddca8f131dde648276
tree65c4eb8266a931a7a7c08f6dbadb6d25f4247366
parent548791769dc737f05cb12e5ee4190b7e853beac9
xtensa: gas: clean up literal management code

gas/
2019-04-11  Max Filippov  <jcmvbkbc@gmail.com>

* config/tc-xtensa.c (xtensa_literal_pseudo): Drop code that has
no effect.
(get_literal_pool_location): Only search for the literal pool
when auto litpools is used, otherwise take one recorded in the
tc_segment_info_data.
(xtensa_assign_litpool_addresses): New function.
(xtensa_move_literals): Don't duplicate 'literal pool location
required...' error message. Call xtensa_assign_litpool_addresses.
gas/ChangeLog
gas/config/tc-xtensa.c