This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFA]: Fix reload of paradoxical subreg on big-endian platforms when reg is in memory
- From: Jan Hubicka <jh at suse dot cz>
- To: Stephane Carrez <stcarrez at nerim dot fr>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 13 Apr 2003 14:20:44 +0200
- Subject: Re: [RFA]: Fix reload of paradoxical subreg on big-endian platforms when reg is in memory
- References: <3E994D03.7090309@nerim.fr>
> Hi!
>
> I've found a reload problem with paradoxical subregs on big-endian
> platforms.
> When a register is in memory and its paradoxical subreg is reloaded, we
> compute its address but we come up with a wrong address representing the
> high part instead of the low part. It is a regression compared to 3.0.4.
It seems to be that it is invlid to reload paradoxical memory subreg
without reloading the inner value first, because we may access
unintialized or missaligned memory. Perhaps reload_inner_reg_of_subreg
needs extra check?
Honza