This is the mail archive of the gcc@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]

Re: RFA: how to handle union wait portably?


Per Bothner <per@bothner.com> wrote:

> It seems to me that when you switch compilers you should re-run
> configure.  So arguably it is a bug in 'make bootstap' if it doesn't
> do that.

Well, this is definitely for more big-time GCC folks, not for me little 4.3BSD
user. :-)

> Another possible solution:  Add fix-includes changes so that
> WIFEXITED etc cast their arguments to (union wait*).

I don't think it's that simple. The argument to these macros needs to be a
union wait, not a union wait *. While you can easily cast from an int * to a
union wait *, I don't think you can cast from an int to a union wait. Applying
a & to the argument won't work either, I think. If in POSIX these macros take a
simple int, they don't require a lvalue, do they? So I don't see how this
approach can be used.

--
Michael Sokolov
Public Service Agent
International Engineering and Science Task Force

1351 VINE AVE APT 27		Phone: +1-714-738-5409
FULLERTON CA 92833-4291 USA	(home office)

E-mail: msokolov@ivan.Harhan.ORG (ARPA TCP/SMTP)

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