This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [committed] Change "Q" and "T" constraints to memory constraints
- From: Richard Henderson <rth at redhat dot com>
- To: John David Anglin <dave dot anglin at bell dot net>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 13 Feb 2015 09:08:48 -0800
- Subject: Re: [committed] Change "Q" and "T" constraints to memory constraints
- Authentication-results: sourceware.org; auth=none
- References: <BLU436-SMTP164FFBA31AD0A827A87B35997230 at phx dot gbl>
On 02/13/2015 05:22 AM, John David Anglin wrote:
> + /* Reload sometimes tries to put const data symbolic operands in
> + readonly memory. The HP SOM linker doesn't allow symbolic data
> + in readonly memory. */
> + if (TARGET_SOM
> + && !function_label_operand (x, VOIDmode)
> + && symbolic_operand (x, VOIDmode))
> + return true;
You probably want to remove the SOM test. Even if ELF can represent this, it
will lead to DT_TEXTREL and relocations against the read-only memory.
r~