This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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, arm] Fix gcc.c-torture/execute/930628-1.c -O3 for Thumb


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


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