Fix PR target/53440 - handle generic thunks better for TARGET_32BIT.
authorRamana Radhakrishnan <ramana.radhakrishnan@arm.com>
Fri, 13 May 2016 09:32:29 +0000 (09:32 +0000)
committerRamana Radhakrishnan <ramana@gcc.gnu.org>
Fri, 13 May 2016 09:32:29 +0000 (09:32 +0000)
commitc959db3d3b344fa2e21fdd79768e2349d7c2db25
treed5453fb8781fd3155de6a7028b49ec1db7df0b3e
parent43203dea1afa87140a0f045f2c2182943247065f
Fix PR target/53440 - handle generic thunks better for TARGET_32BIT.

This partially fixes PR target/53440 atleast in ARM and
Thumb2 state. I haven't yet managed to get my head around
rewriting the Thumb1 support yet.

Tested on armhf with a bootstrap and regression test
with no regressions.

Queued for stage1 now as it isn't technically a regression.

regards
Ramana

2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

        PR target/53440
        * config/arm/arm.c (arm32_output_mi_thunk): New.
        (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
        to split Thumb1 vs TARGET_32BIT functionality.
        (arm_thumb1_mi_thunk): New.

        * g++.dg/inherit/thunk1.C: Support arm / aarch64.

From-SVN: r236198
gcc/ChangeLog
gcc/config/arm/arm.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/inherit/thunk1.C