This is the mail archive of the gcc-bugs@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]

[Bug c/12935] New: internal compiler error with: -traditional -E and compiling sscanf.c from glibc-2.3.2


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12935

           Summary: internal compiler error with: -traditional -E and
                    compiling sscanf.c from glibc-2.3.2
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: frahm at irsamc dot ups-tlse dot fr
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu

Compiling glibc-2.3.2 on a linux-gnu pc using 
gcc-3.3.2 stopps at the file "sscanf.c" 
(in "glibc-2.3.2/stdio-common" in the glibc-source tree) with 
the message:

  sscanf.c:31: warning: conflicting types for built-in function `sscanf'
  sscanf.c: In function `sscanf':
  sscanf.c:37: error: `va_start' used in function with fixed args
  ../stdio-common/_itoa.h: At top level:
  ../stdio-common/_itoa.h:40: warning: inlining failed in call to `_itoa_word'
  ../stdio-common/_itoa.h:76: warning: called from here
  make[2]: *** [/home/frahm/GCC/build_glibc-2.3.2/stdio-common/sscanf.o] Error 1
  make[2]: Leaving directory `/users1/klaus/GCC/glibc-2.3.2/stdio-common'
  make[1]: *** [stdio-common/subdir_lib] Error 2
  make[1]: Leaving directory `/users1/klaus/GCC/glibc-2.3.2'
(This is not the bug I am reporting and I don't know if know if there is 
a problem with gcc-3.3.2 or glibc-2.3.2 ? The previous version 
gcc-3.2.2 succeeds to compile this file and glibc-2.3.2.) 

The bug appears by adding the options: "-traditional -E" to the 
command line initially issued by make (see below). This triggers:
  cc1: internal compiler error: Segmentation fault

Details:
- gcc-version: 3.3.1
- linux-gnu system (Suse 6.3 with upgrades to very recent versions 
  of all important components as gcc, binutils, make, glibc, kernel, ...)
- configure options of gcc-3.3.1: --prefix=/users1/klaus/GCC/local
  (native build)
- complete command line that triggers the bug and the compiler output:

598 albireo: ~/GCC/glibc-2.3.2/stdio-common> gcc sscanf.c -c -std=gnu99 -O2
-Wall -Winline -Wstrict-prototypes -Wwrite-strings -g      -I../include -I.
-I/home/frahm/GCC/build_glibc-2.3.2/stdio-common -I.. -I../libio 
-I/home/frahm/GCC/build_glibc-2.3.2 -I../sysdeps/i386/elf
-I../linuxthreads/sysdeps/unix/sysv/linux/i386
-I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread
-I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv
-I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386/i686
-I../linuxthreads/sysdeps/i386 -I../sysdeps/unix/sysv/linux/i386
-I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common
-I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686
-I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic  -I
/lib/modules/2.4.22/build/include -D_LIBC_REENTRANT -include
../include/libc-symbols.h       -D_IO_MTSAFE_IO -o
/home/frahm/GCC/build_glibc-2.3.2/stdio-common/sscanf.o -traditional -E
cc1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]