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] Work around bug in powf function on HP-UX


On 18-Feb-13, at 11:45 AM, John David Anglin wrote:

2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>

	PR target/56347
	* config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
	registers %fr12 and %fr12R as call used.

I committed the attached change. It no longer unconditionally clobbers %fr12 and %fr12R
and instead uses special call patterns that clobber %fr12 to work around the problem. It
is not perfect in that only direct calls are detected, but I think that is the best compromise.


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


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


Attachment: pa-powf.d.5.txt
Description: Text document


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