This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/10991] New: Optimization error in libncurses
- From: "rehsack at liwing dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 May 2003 07:29:19 -0000
- Subject: [Bug c/10991] New: Optimization error in libncurses
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10991
Summary: Optimization error in libncurses
Product: gcc
Version: 3.2.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: rehsack@liwing.de
CC: gcc-bugs@gcc.gnu.org
GCC build triplet: FreeBSD hogthrob.muppets.liwing.de 5.1-BETA2 FreeBSD
5.1-BETA2 #
GCC host triplet: FreeBSD hogthrob.muppets.liwing.de 5.1-BETA2 FreeBSD
5.1-BETA2 #
GCC target triplet: FreeBSD hogthrob.muppets.liwing.de 5.1-BETA2 FreeBSD
5.1-BETA2 #
When I rebuild my world (FreeBSD system binaries and libraries) with "some"
optimizations turned on, the file
/usr/src/contrib/ncurses/ncurses/tty/tty_update.c is compiled wrong.
cc -S -O3 -fforce-addr -fgcse -fgcse-lm -fgcse-sm -frerun-cse-after-loop \
-fcse-follow-jumps -fcse-skip-blocks -frerun-loop-opt -foptimize-sibling-calls \
-finline-functions -fstrength-reduce -fthread-jumps -fexpensive-optimizations \
-foptimize-register-move -funroll-loops -mmmx -m3dnow -pipe -DNO_WERROR \
-march=k6-3 -I. -I/usr/src/lib/libncurses \
-I/usr/src/lib/libncurses/../../contrib/ncurses/ncurses \
-I/usr/src/lib/libncurses/../../contrib/ncurses/include -Wall \
-DFREEBSD_NATIVE -DNDEBUG -DHAVE_CONFIG_H -DTERMIOS \
/usr/src/contrib/ncurses/ncurses/tty/tty_update.c -o tty_update.s
hogthrob# cc -c -o tty_update.o tty_update.s
tty_update.s: Assembler messages:
tty_update.s:1100: Error: value of -137 too large for field of 1 bytes at 3249
The problem with the report is, when I use cc -E to produce preprocessed output,
the compilation succeeds. IIRC you need some input files to reproduce the error,
but I don't know what I should submit, because you don't want to receive all
the source files (and I don't want submit entire /usr/include) and the error
doesn't happen when I use the stages (-E, -s, -c) seperately.
Would you please guide me?
Thanks,
Jens Rehsack
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.