This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Mainline bootstrap failure on hppa2.0w-hp-hpux11.00
> The failure is building gcc/intl during stage2, which fails with the
> error message
>
> ../../../gcc/gcc/intl/loadmsgcat.c: In function `_nl_load_domain':
> ../../../gcc/gcc/intl/loadmsgcat.c:524: warning: signed and unsigned
> type
> in conditional expression
>
> It turns out that the line in question is an innocent call to HPUX's
> "isspace" macro defined in ctype.h.
>
> My question is whether this is a problem with GCC's in_system_header,
> or whether we need to run fixincludes on the affected file?
[...]
> I have to wonder if we are being too strict in applying "-Werror" to
> system headers.
GCC's in_system_header check is done when >processing< a system
header. Here, we are expanding a system header macro, while
processing a "user's" .c file. Not the same thing, so GCC warns.
IMHO, you should go with a fixincl hack to silence it. If only so
that all the hpux users who enable warnings don't get this spurious
one when they use ctype macros.
--
Kaveh R. Ghazi ghazi@caip.rutgers.edu