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 2/6] rs6000: Do not allow lo_sum accesses >= 4 bytes if unaligned


On Sat, Jan 17, 2015 at 3:48 AM, Segher Boessenkool
<segher@kernel.crashing.org> wrote:
> This fixes 29 FAILs.
>
> The ld, lwa etc. insns do not encode the low two bits of the offset in
> the opcode; those have to be zero.  For -m64 this seemed to never matter,
> datums are always aligned; but for -m32 -mpowerpc64 you can get symbols
> that are not sufficiently aligned.  So check for that.
>
> [ Hrm, I think this triggers for lwz as well?  I'll investigate. ]
>
>
> 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
>
> gcc/
>         * config/rs6000/rs6000.c (lo_sum_symbol_misaligned_p): New function.
>         (legitimate_lo_sum_address_p): Use it for TARGET_POWERPC64.

Okay.

Thanks, David


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