This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH RFA: Use new pexecute routines in collect2
"Joseph S. Myers" <joseph@codesourcery.com> writes:
> On Tue, 29 Mar 2005, Ian Lance Taylor wrote:
>
> > This patch changes collect2.c to use the new pexecute routines which I
> > recently checked in. This should be the long-awaited fix to PR
> > bootstrap/14316 in mainline.
>
> I think this patch should also fix a bootstrap failure on hppa2.0w-hpux
> which appeared today with the previous pexecute changes. (collect2 was
> failing to interpret nm's exit status properly, producing errors like
>
> collect2: /usr/ccs/bin/nm terminated with signal 96 [], core dumped
>
> and it looked to me like the problem could be nm being invoked with vfork
> and pwait being called with a pid from vfork which was no longer suitable
> for pwait, which now expects pexecute's internal pids instead.)
Very likely. I hadn't noticed that collect2 assumed that pexecute and
vfork returned comparable PID numbers.
Ian