This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc-2.95.2 :: compiler error when using -ggdb
- To: gcc-bugs at gcc dot gnu dot org
- Subject: gcc-2.95.2 :: compiler error when using -ggdb
- From: Juergen Heinzl <juergen at monocerus dot demon dot co dot uk>
- Date: Fri, 25 Feb 2000 22:57:39 +0000
Hello,
trying to build glibc-2.1.3 (release) I ran into a, possibly, compiler
error when compiling malloc.c ...
gcc malloc.c -c -Os -Wall -Winline -Wstrict-prototypes -Wwrite-strings \
-fno-strength-reduce -ggdb -malign-functions=2 -malign-jumps=2 \
-malign-loops=2 -march=pentiumpro -mcpu=pentiumpro -pipe \
-fno-omit-frame-pointer -fPIC -DMORECORE_CLEARS=2 -I../include -I. \
[...]
-I../sysdeps/generic -D_LIBC_REENTRANT -include \
/include/libc-symbols.h -DPIC -o /usr/src/cvs/build/malloc/malloc.os
malloc.c: In function `main_trim':
malloc.c:3858: Internal compiler error, output_operand_lossage
`invalid expression as operand'
cpp: output pipe has been closed
.
It happens with ...
-ggdb -O[123s] [-S]
. say even if just an assembler output is generated, so I presume
it actually is the compiler.
It does not happen with ...
-g -O[123s]
-ggdb -O0
.
gcc version is ...
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)
.
Attached the pre-processed file malloc.i only as there are quite
some other dependencies.
Cheers,
Juergen
--
\ Real name : Jürgen Heinzl \ no flames /
\ EMail Private : juergen@monocerus.demon.co.uk \ send money instead /
malloc.i.gz