[PATCH, arm] Fix gcc.c-torture/execute/930628-1.c -O3 for Thumb

Hans-Peter Nilsson hp@bitrange.com
Wed Oct 30 08:56:00 GMT 2002


On Wed, 30 Oct 2002, Richard Earnshaw wrote:

[arm/thumb context removed]

> LEGITIMIZE_RELOAD_ADDRESS is only supposed to be used to optimize cases
> where reload generates inefficient code.  It shouldn't be needed to get
> correct code, so this change can't be right even if it fixes the cases
> you've found.

Since that seems like a general remark, let me just say that in
the general case (not arm/thumb-specific) that is not true.
LEGITIMIZE_RELOAD_ADDRESS is sometimes needed for necessity.  I
think I've said this before. [Checking...] right; summary at
<URL:http://gcc.gnu.org/ml/gcc-patches/2002-07/msg00054.html>.
Or alternatively, those target-specific cases need to catered
for by reload or *another* target mechanism.  Or alternatively,
some addressing modes on some targets can't be used.

brgds, H-P



More information about the Gcc-patches mailing list