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: [PATCH] Rename pwait for LynxOS


Adam Nemet <anemet@lnxw.com> writes:

>> Why is libc's pwait() getting pulled in at all?  If libiberty is
>> providing one, there's no reason for libc's pwait() to be needed.
>
> Well, the two pwait's are identical only in name.  They have different
> prototypes and different functionalities otherwise.  For the actual
> error, see the bottom of
> http://gcc.gnu.org/ml/gcc-patches/2004-08/msg01182.html.
>
> And pwait is packaged with system into one member of libc.a.

That's arguably a bug in libc - use of system() should not cause the
user program to be unable to use the name pwait, which is not reserved
by the C standard.

> The definition of system is included because of tlink.o.

That suggests another potential fix, which is to change tlink.c to use
pexecute instead of system, thus preventing libc's pwait from being
dragged in.

zw


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