Re: Some aliasing questions

2016-04-12 Thread Richard Biener
On April 12, 2016 5:11:45 PM GMT+02:00, Richard Henderson wrote: >On 04/11/2016 05:30 PM, Alan Modra wrote: >> Either way, when we split to >> set (reg tmp) (high (const (minus ((symbol_ref) (reg 2) >> .. mem (lo_sum (reg tmp) (const (minus ((symbol_ref) (reg 2) >> both high and

Re: Some aliasing questions

2016-04-12 Thread Richard Henderson
On 04/11/2016 05:30 PM, Alan Modra wrote: Either way, when we split to set (reg tmp) (high (const (minus ((symbol_ref) (reg 2) .. mem (lo_sum (reg tmp) (const (minus ((symbol_ref) (reg 2) both high and lo_sum reference r2 and the linker could happily replace rtmp in the lo

Re: Some aliasing questions

2016-04-12 Thread Bill Schmidt
On Tue, 2016-04-12 at 10:00 +0930, Alan Modra wrote: > On Fri, Apr 08, 2016 at 01:41:05PM -0700, Richard Henderson wrote: > > On 04/08/2016 11:10 AM, Bill Schmidt wrote: > > > The first is an issue with TOC-relative addresses on PowerPC. These are > > > symbolic addresses that are to be loaded fro

Re: Some aliasing questions

2016-04-11 Thread Alan Modra
On Fri, Apr 08, 2016 at 01:41:05PM -0700, Richard Henderson wrote: > On 04/08/2016 11:10 AM, Bill Schmidt wrote: > > The first is an issue with TOC-relative addresses on PowerPC. These are > > symbolic addresses that are to be loaded from a fixed slot in the table > > of contents, as addressed by

Re: Some aliasing questions

2016-04-08 Thread Bill Schmidt
On Fri, 2016-04-08 at 13:41 -0700, Richard Henderson wrote: > On 04/08/2016 11:10 AM, Bill Schmidt wrote: > > The first is an issue with TOC-relative addresses on PowerPC. These are > > symbolic addresses that are to be loaded from a fixed slot in the table > > of contents, as addressed by the TOC

Re: Some aliasing questions

2016-04-08 Thread Richard Henderson
On 04/08/2016 11:10 AM, Bill Schmidt wrote: > The first is an issue with TOC-relative addresses on PowerPC. These are > symbolic addresses that are to be loaded from a fixed slot in the table > of contents, as addressed by the TOC pointer (r2). In the RTL phases > prior to register allocation, th

Re: Some aliasing questions

2016-04-08 Thread Richard Biener
On April 8, 2016 8:10:16 PM GMT+02:00, Bill Schmidt wrote: >Hi, > >I ran into a couple of aliasing issues with a project I'm working on, >and have some questions. > >The first is an issue with TOC-relative addresses on PowerPC. These >are >symbolic addresses that are to be loaded from a fixed sl