[committed] Consolidate various PIC pc-relative sequences to one output function in pa.c

John David Anglin dave.anglin@bell.net
Thu Jun 16 21:55:00 GMT 2016


The attached patch consolidates various PIC pc-relative sequences to load function and code-label
addresses into one function.  This simplifies the output functions.  It also allows use of the mfia instruction
to load the current program counter when generating PA 2.0 .

These sequences are primarily used for long PIC calls.

Tested on hppa-unknown-linux-gnu, hppa64-hp-hpux11.11 and hppa2.0w-hp-hpux11.11 using
BOOT_CFLAGS and BOOT_CCCFLAGS for long call generation.

Committed to trunk.

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


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pa.c.d.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160616/b6088523/attachment.txt>


More information about the Gcc-patches mailing list