C++ Issue on GCC 3.0 branch
John David Anglin
dave@hiauly1.hia.nrc.ca
Fri Apr 27 10:43:00 GMT 2001
> In message < 200104250323.XAA05283@hiauly1.hia.nrc.ca >you write:
> > 2001-01-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
> >
> > * pa.c (hppa_init_pic_save): Update last_parm_insn after emitting
> > pic save insn.
> This is fine for the mainline sources as well as the branch.
>
> Thanks for tracking this down!
Before I installed this, I checked to make sure there were no gcc regressions
in the testsuite with -fPIC. I found that in fact there were some. It looks
like there are problems with the placement of the save instruction when
the first non parameter insn is nil. I think we need to place the save
after the first insn (the one returned by get_insns ()) in this case.
Some of the fails in the testsuite are due to an abort at integrate.c:430
due to first insn not being a note:
;; Function z
(note 2 0 26 NOTE_INSN_DELETED 0)
(insn 26 2 3 (set (reg:SI 98)
(reg:SI 19 %r19)) -1 (nil)
(nil))
(note 3 26 5 NOTE_INSN_FUNCTION_BEG 0)
I am going to go back to the original form and not use
get_first_nonparm_insn (). I think this will fix the problem.
This suggests that there is also a bug in get_eh_context () for
the same reason.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
More information about the Gcc
mailing list