delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/07/17/17:28:31

From: Mike Stump <mrs AT windriver DOT com>
Date: Mon, 17 Jul 2000 14:28:17 -0700 (PDT)
Message-Id: <200007172128.OAA29590@kankakee.wrs.com>
To: eliz AT is DOT elta DOT co DOT il
Subject: Re: GCC headers and DJGPP port
Cc: djgpp-workers AT delorie DOT com, gcc AT gcc DOT gnu DOT org
Reply-To: djgpp-workers AT delorie DOT com

> Date: Mon, 17 Jul 2000 14:34:27 -0400 (EDT)
> From: Eli Zaretskii <eliz AT delorie DOT com>
> To: Mike Stump <mrs AT windriver DOT com>

> > From: Mike Stump <mrs AT windriver DOT com>
> > Date: Mon, 17 Jul 2000 10:36:53 -0700 (PDT)
> > 
> Sorry, I don't understand how can this ever work reliably.

Simple, gcc knows the target system, including details that affect
these things.  Does it mean that gcc has to know a bit about target
system, sure.  Welcome to gcc.

> I don't see how can GCC provide definitions that will never conflict
> with library internals.  Please tell what am I missing.

> How about a system with its own stddef.h?  Standard types such as
> the definition of NULL -- these are surely closely related to the
> internals of a library, right?

:-) Actually, this is the canonical example for of one that we prefer
our definition for.  Understand why we #define it to __null and you'll
gain a better understanding of the issues.

varargs.h, is another good example.  Ours works, it'll always work, we
prefer it, why not use it?  Is your version safe with
-fstrict-aliasing?  Are you sure?  By using ours, we know ours is.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019