This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
"causes a section type conflict" ?
- To: gcc at gcc dot gnu dot org
- Subject: "causes a section type conflict" ?
- From: paul dot stoeber at in dot stud dot tu-ilmenau dot de
- Date: Thu, 11 Oct 2001 13:38:02 +0200 (MDT)
$ cat bug_p.c
static const int a __attribute__ ((__section__ (".data.init"))) = 1;
static int b __attribute__ ((__section__ (".data.init"))) = 1;
$ /home/wtq/gcc-inst/bin/gcc -v -c bug_p.c
Reading specs from /home/wtq/gcc-inst/lib/gcc-lib/powerpc-unknown-linux-gnu/3.1/specs
Configured with: ../gcc/configure --prefix=/home/wtq/gcc-inst --enable-languages=c
Thread model: single
gcc version 3.1 20011008 (experimental)
/home/wtq/gcc-inst/lib/gcc-lib/powerpc-unknown-linux-gnu/3.1/cc1 -lang-c -v -D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -DPPC -D__ELF__ -Dpowerpc -D__PPC__ -D__ELF__ -D__powerpc__ -D__PPC -D__powerpc -Acpu=powerpc -Amachine=powerpc -D__CHAR_UNSIGNED__ -D__NO_INLINE__ -D__STDC_HOSTED__=1 -D_CALL_SYSV -D_BIG_ENDIAN -D__BIG_ENDIAN__ -Amachine=bigendian -D_ARCH_PPC -D__unix__ -D__linux__ -Dunix -D__unix -Dlinux -D__linux -Asystem=unix -Asystem=posix bug_p.c -quiet -dumpbase bug_p.c -version -o /tmp/ccbGxssE.s
GNU CPP version 3.1 20011008 (experimental) (cpplib) (PowerPC GNU/Linux)
GNU C version 3.1 20011008 (experimental) (powerpc-unknown-linux-gnu)
compiled by GNU C version 2.95.2 20000220 (Debian GNU/Linux).
ignoring nonexistent directory "/home/wtq/gcc-inst/powerpc-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/home/wtq/gcc-inst/include
/home/wtq/gcc-inst/lib/gcc-lib/powerpc-unknown-linux-gnu/3.1/include
/usr/include
End of search list.
bug_p.c:2: b causes a section type conflict
$
gcc 2.95.2 doesn't complain. Affects linux build.
Is that supposed to happen?