]> gcc.gnu.org Git - gcc.git/commit
rs6000: Fix shrink-wrap-separate for AIX
authorSegher Boessenkool <segher@kernel.crashing.org>
Sat, 15 Oct 2016 21:01:43 +0000 (23:01 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Sat, 15 Oct 2016 21:01:43 +0000 (23:01 +0200)
commitf9e9d32f79409fd2f4d7bc73d3576a33fac9b715
treed89e56362ed9fd3d49b09d9d54cd79dc4c10ef8b
parentbaa33d8380e5a74a8709ed5790856c8d07739cc3
rs6000: Fix shrink-wrap-separate for AIX

All out-of-line register save routines need LR, so we cannot wrap the
LR component if there are out-of-line saves.  This didn't show up for
testing on Linux because none of the tests there use out-of-line FPR
saves without also using out-of-line GPR saves, which we did handle.

This patch fixes it, and also cleans up code a little.

* config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
make LR a separately shrink-wrapped component unless savres_strategy
contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}.  Do not wrap
GPRs unless both {SAVE,REST}_INLINE_GPRS.  Do not disallow all
wrapping when not both {SAVE,REST}_INLINE_GPRS.

From-SVN: r241203
gcc/ChangeLog
gcc/config/rs6000/rs6000.c
This page took 0.057551 seconds and 5 git commands to generate.