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]

Re: need info on __need_ usage


Sorry for the delay, I was out of town.

Bruce Korb <bkorb@cruzio.com> writes:
> [...] I believe that such unwrappable headers can be detected with
> the regular expression, "^#if.*__need_".

Only if you don't handle headers in the bits subdir.  <math.h> and
<complex.h> use multi-inclusion for other things.

> The question is, "Is there a plausible chance that such an *avoidance*
> of wrapping would cause compile problems on any GCC-supported
> platforms?"  I cannot see how, but I figure a sanity check won't hurt...

You mean, are there problems to expect if you leave the wrappers out
and use what the system has?  It probably depends on the quality of
the system.  There used to be quite some systems where the headers
were not appropriately protected and one had to include them in a
certain order.  But these times are probably gone.  If there are any
packages which install headers with this problem left then it is up to
the package maintainer to fix this.  This is not the kind of problem
fixincludes is supposed to fix.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

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