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] |
Other format: | [Raw text] |
I'm getting a bootstrap failure on HPUX with current CVS mainline, probably caused by the recent "-Werror" change. 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. On my version of HP-UX, the relevant defintions look like: extern unsigned int *__SB_masks; extern int _isspace(int); #define isspace(__c) (__SB_masks ? __SB_masks[__c] & _ISSPACE : _isspace(__c)) which obviously causes GCC to complain about a signed/unsigned mismatch in this, and all the other isalpha, isalnum, etc... macros. 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? Just in case it's the latter, I've attached /usr/include/ctype.h to this e-mail. Hopefully, this is enough for a fixincludes guru to come up with a patch. Many thanks in advance, Roger -- Roger Sayle, E-mail: roger@eyesopen.com OpenEye Scientific Software, WWW: http://www.eyesopen.com/ Suite 1107, 3600 Cerrillos Road, Tel: (+1) 505-473-7385 Santa Fe, New Mexico, 87507. Fax: (+1) 505-473-0833
Attachment:
ctype.h
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |