This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


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

Re: #pragma system_header and bootstrap



> cc1plus: warnings being treated as errors
> In file included from ../bits/std_limits.h:46,
>                  from limitsMEMBERS.cc:37:
> ../../../../../gcc/libstdc++-v3/bits/std_cfloat.h:38: warning: ignoring pragma: 
> cc1plus: warnings being treated as errors
>
>
> That's because configure finds the installed g++ and uses it instead
> of the bootstrapped compiler. IMHO that's a bug, but I don't have

Think of it as a pair of bugs:  1) configure is (?) finding the wrong
compiler (I haven't tested this myself), and 2) configure should be
testing whatever compiler it finds to see if system_header is implemented,
and disable -Werror if it isn't.  Both should be fixed; either would
solve your problem.

I'm working on the second one now... how to test for the support of a
specific pragma?  Garrrrr...


Phil


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