This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR79066, non-PIC code generated for powerpc glibc with -fpic
- From: Segher Boessenkool <segher at kernel dot crashing dot org>
- To: Alan Modra <amodra at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 14 Jan 2017 03:28:51 -0600
- Subject: Re: PR79066, non-PIC code generated for powerpc glibc with -fpic
- Authentication-results: sourceware.org; auth=none
- References: <20170113114012.GT32333@bubble.grove.modra.org>
On Fri, Jan 13, 2017 at 10:10:12PM +1030, Alan Modra wrote:
> Bootstrapped and regression tested powerpc64-linux biarch. elf_high
> has said "Elf specific ways of loading addresses for non-PIC code"
> ^^^^^^^
> right from the inital V4 support in 1995.
>
> OK for mainline?
Have you checked if/what this changes for some bigger code?
Okay for trunk if there is nothing unexpected. Thanks!
Vladimir: Why does LRA attempt to manually construct high/lo_sum at all?
The next thing it tries is using lra_emit_move; this will also do it (on
all targets I checked), but only after appropriate (target-specific) checks.
It is way too late in stage 3 to attempt to change this now, of course ;-)
Segher
> PR target/79066
> * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
> testsuite/
> * gcc.target/powerpc/pr79066.c: New.