egcs-1.1.2 on HP-UX 11
Jeffrey A Law
law@upchuck.cygnus.com
Sat May 15 22:19:00 GMT 1999
In message < 19990515215516.A24166@hp.is >you write:
> I just installed egcs, using gas from binutils 2.9.1 on HP-UX. Everything
> seems to be just fine except for a set of warnings I keep getting:
> g++ -c -I/users/ra/kde/qt-1.44/include -Wno-unused -Wno-parentheses -O2 -fn
> o-strength-reduce -o mocgen.o mocgen.cpp
> In file included from /users/ra/kde/qt-1.44/include/qstring.h:32,
> from moc.y:34:
> /opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux11.00/egcs-2.91.66/include/string.h:29:
> warning: declaration of `int memcmp(const void *, const void *, size_t)'
> /opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux11.00/egcs-2.91.66/include/string.h:29:
> warning: conflicts with built-in declaration `int memcmp(const void *, con
> st void *, unsigned int)'
> /opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux11.00/egcs-2.91.66/include/string.h:85:
> warning: declaration of `void * memcpy(void *, const void *, size_t)'
> /opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux11.00/egcs-2.91.66/include/string.h:85:
> warning: conflicts with built-in declaration `void * memcpy(void *, const
> void *, unsigned int)'
> /opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux11.00/egcs-2.91.66/include/string.h:93:
> warning: declaration of `size_t strlen(const char *)'
> /opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux11.00/egcs-2.91.66/include/string.h:93:
> warning: conflicts with built-in declaration `unsigned int strlen(const ch
> ar *)'
>
> I'm not sure what this does for my compiles, but I just wanted to let you
> know.
It's a symptom of egcs not really supporting hpux11 yet. I had hoped to get
it into gcc-2.95 (aka egcs-1.2), but it got pushed out due to other concerns.
This particular problem is due to HP changing size_t in hpux11. GCC needs to
know the precise definition of size_t so that its internal prototypes for
functions like memcmp, memcpy, etc are correct.
jeff
More information about the Gcc-bugs
mailing list