This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
gcc HEAD warning about implicit declaration of builtin
- From: Michael Chastain <mec dot gnu at mindspring dot com>
- To: gdb at sources dot redhat dot com
- Date: Wed, 04 Aug 2004 16:03:16 -0400
- Subject: gcc HEAD warning about implicit declaration of builtin
gcc HEAD has sprouted a new warning. It looks like this:
/berman/fsf/_current_/source/gdb/HEAD/src/gdb/testsuite/gdb.base/auxv.c:45: warning: incompatible implicit declaration of built-in function 'abort'
The gcc-patches thread discussing the new warning is here:
http://gcc.gnu.org/ml/gcc-patches/2004-08/msg00085.html
I saw 24 instances of this happen in gdb.base/*.exp and 3 instances
in gdb.mi/*.exp. I've appended a list.
We can either patch the gdb test suite, or ask the gcc people to revert
the warning, or patch the testsuite infrastructure to ignore the warning
or supply the flag to suppress it. I'm in favor of patching the test
suite, because the required headers are standardized anyways.
I'm working on a patch for gdb.base. After that, I'll write a patch
for gdb.mi and submit it, unless Andrew or someone beats me to it.
Michael C
gdb.base/auxv.c:45: warning: ... 'abort'
gdb.base/charset.c:94: warning: ... 'malloc'
gdb.base/complex.c:16: warning: ... 'exit'
gdb.base/complex.c:32: warning: ... 'abort'
gdb.base/complex.c:48: warning: ... 'abort'
gdb.base/freebpcmd.c:32: warning: ... 'printf'
gdb.base/gcore.c:25: warning: ... 'strcpy'
gdb.base/long_long.c:47: warning: ... 'memcpy'
gdb.base/long_long.c:69: warning: ... 'memset'
gdb.base/sigaltstack.c:40: warning: ... 'memset'
gdb.base/sigaltstack.c:50: warning: ... 'memset'
gdb.base/sigaltstack.c:83: warning: ... 'memset'
gdb.base/sigaltstack.c:90: warning: ... 'exit'
gdb.base/siginfo.c:46: warning: ... 'memset'
gdb.base/siginfo.c:61: warning: ... 'memset'
gdb.base/sigstep.c:38: warning: ... 'memset'
gdb.base/sigstep.c:48: warning: ... 'memset'
gdb.mi/basics.c:35: warning: ... 'printf'
gdb.mi/gdb701.c:14: warning: ... 'exit'
gdb.mi/var-cmd.c:293: warning: ... 'exit'