This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] gas: xtensa: fix incorrect code generated with auto litpools


Hi Max,

> gas/
> 2017-03-31  Max Filippov  <jcmvbkbc@gmail.com>
> 
> 	* config/tc-xtensa.c (xtensa_maybe_create_literal_pool_frag):
> 	Initialize lps->frag_count with auto_litpool_limit.
> 	(xg_promote_candidate_litpool): New function.
> 	(xtensa_move_literals): Extract candidate litpool promotion code
> 	into separate function. Call it for all possible found
> 	candidates.
> 	(xtensa_switch_to_literal_fragment): Drop 'recursive' flag and
> 	call to xtensa_mark_literal_pool_location that it guards.
> 	Replace it with call to xtensa_maybe_create_literal_pool_frag.
> 	Initialize pool_location with created literal pool candidate.
> 	* testsuite/gas/xtensa/all.exp: Add new tests.
> 	* testsuite/gas/xtensa/auto-litpools-first1.d: New test results.
> 	* testsuite/gas/xtensa/auto-litpools-first1.s: New test.
> 	* testsuite/gas/xtensa/auto-litpools-first2.d: New test results.
> 	* testsuite/gas/xtensa/auto-litpools-first2.s: New test.
> 	* testsuite/gas/xtensa/auto-litpools.d: Fix offsets changed due
> 	to additional jump instruction.
 
Approved and applied.

Cheers
  Nick


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]