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]

[committed] Work around auto increment/decrement reload issue on PA


The attached change works around a problem that results in wrong code on hppa1.1-*-hpux*. The wrong code causes a bootstrap error. The problem does not occur when generating PA2.0 code, or on linux because the generation of auto increment/decrement instructions is disabled. The comment in the code indicates
that this was done on PA2.0 because it is not profitable.

The real problem seems to be in reload. It appears to handle spills for auto increment/decrements insns incorrectly, sometimes generating the reload insns in the wrong order. I couldn't see any way to correct this in the PA backend
as the insns are emitted independently.

So, I decided to disable the generation of auto increment/decrement insns until after reload.

Tested on hppa2.0-hp-hpux11.11, hppa64-hp-hpux11.11 and hppa-unknown- linux-gnu. Bootstrap tested
on hppa1.1-hp-hpux11.11.  Committed to trunk and 4.8.

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]