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: [committed] Change "Q" and "T" constraints to memory constraints


On 2015-02-16, at 1:47 PM, John David Anglin wrote:

> On 2015-02-16, at 11:38 AM, Richard Henderson wrote:
> 
>>> 
>>> Possibly the constant can somehow be forced into the data section where the relocations
>>> aren't a problem?
>> 
>> Hmm.  It looks like we might already do that.  See default_select_rtx_section.
> 
> Thanks, I see the problem.  default_reloc_rw_mask returns 0 when not generating PIC
> code, so rtx went to readonly_data_section.  I was thinking that pa_select_section was
> somehow broken.


The attached change fixes the problem with the HP SOM linker and as a result we no longer
need to reject (const (plus (symbol) (const_int))) in pa_cannot_force_const_mem.

I looked at trying to prevent (const (plus (symbol) (const_int))) from being forced to const mem
but I think we are stuck with handling it in certain situations.

Tested on hppa-unknown-linux-gnu, hppa2.0w-hp-hpux11.11 and hppa64-hp-hpux11.11.
Committed to trunk and 4.9.

Dave
--
John David Anglin	dave.anglin@bell.net


Attachment: pa.c.d.txt
Description: Text document


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