This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/26023] Compiler crash when using -Wall and "%#ld" inside a printf.
- From: "bbergua at arcos dot inf dot uc3m dot es" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jan 2006 23:56:01 -0000
- Subject: [Bug c/26023] Compiler crash when using -Wall and "%#ld" inside a printf.
- References: <bug-26023-12094@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from bbergua at arcos dot inf dot uc3m dot es 2006-01-29 23:56 -------
(In reply to comment #0)
> On Debian sarge the compiler crash when using -Wall and "%#ld" inside a printf.
> The file foo.c is:
> void foo() {
> long bar;
> printf("%#ld", bar);
> }
>
> Compile with:
> $gcc -v -save-temps -Wall -c foo.c
> Leyendo especificaciones de /usr/lib/gcc-lib/i486-linux/3.3.5/specs
> Configurado con: ../src/configure -v
> --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr
> --mandir=/usr/share/man --infodir=/usr/share/info
> --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared
> --enable-__cxa_atexit --with-system-zlib --enable-nls
> --without-included-gettext --enable-clocale=gnu --enable-debug
> --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
> Modelo de hilos: posix
> gcc versi� 3.3.5 (Debian 1:3.3.5-13)
> /usr/lib/gcc-lib/i486-linux/3.3.5/cc1 -E -quiet -v -D__GNUC__=3
> -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=5 foo.c -Wall foo.i
> ignorando el directorio inexistente "/usr/i486-linux/include"
> la bsqueda de #include "..." inicia aqu�
> la bsqueda de #include <...> inicia aqu�
> /usr/local/include
> /usr/lib/gcc-lib/i486-linux/3.3.5/include
> /usr/include
> Fin de la lista de bsqueda.
> /usr/lib/gcc-lib/i486-linux/3.3.5/cc1 -fpreprocessed foo.i -quiet -dumpbase
> foo.c -auxbase foo -Wall -version -o foo.s
> GNU C version 3.3.5 (Debian 1:3.3.5-13) (i486-linux)
> compiled by GNU C version 3.3.5 (Debian 1:3.3.5-13).
> GGC heur�ticas: --param ggc-min-expand=38 --param ggc-min-heapsize=15892
> foo.c: En la funci� `foo':
> foo.c:3: aviso: implicit declaration of function `printf'
> foo.c:3: aviso: se us�
> Error interno del compilador: Error al reportar rutinas reentradas.
> Please submit a full bug report,
> with preprocessed source if appropriate.
> For Debian GNU/Linux specific bug reporting instructions, see
> <URL:http://gcc.gnu.org/bugs.html>.
>
> Generated foo.i is:
> # 1 "foo.c"
> # 1 "<interno>"
> # 1 "<l\355nea de orden>"
> # 1 "foo.c"
> void foo() {
> long bar;
> printf("%#ld", bar);
> }
>
> Generated foo.s is:
> .file "foo.c"
>
(In reply to comment #1)
> What LC_*/LANG env variables you have set?
>
Yes, sorry, spanish:
echo $LANG
es_ES.UTF-8
I haven't got any LC_*
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26023