BUG-REPORT: GTK+ problems when compiled with optimizations >= -O
Konrad Podloucky
konrad@pelimbert.tssc.univie.ac.at
Mon Apr 3 03:40:00 GMT 2000
Hi folks!
gcc-2.95.2 seems to do some weird stuff with the gtkhpaned.c
file from GTK+-1.2.7 (the widget doesn't resize correctly, see
http://ostbahn.tssc.univie.ac.at/konrad/stuff/gtkhpaned.png ),
when compiling with an optimization level greater than 2.
My system is:
Debian potato/Alpha
gcc version 2.95.2 20000220 (debian package:gcc-2.95.2-7)
GNU assembler version 2.9.5 (alpha-linux) using BFD version
2.9.5.0.22
command line options:
gcc -v --save-temps -DHAVE_CONFIG_H -I. -I. -I..
-DG_LOG_DOMAIN=\"Gtk\" -DGTK_DISABLE_COMPAT_H
-DGTK_EXE_PREFIX=\"/usr/local\" -DGTK_DATA_PREFIX=\"/usr/local\"
-DGTK_SYSCONFDIR=\"/usr/local/etc\"
-DGTK_LOCALEDIR=\"/usr/local/share/locale\" -I..
-DGTK_NO_CHECK_CASTS -DUSE_XIM -I/usr/lib/glib/include
-D_REENTRANT -I/usr/X11R6/include -g -O2 -Wall -c gtkhpaned.c -o
gtkhpaned.o
output from '-v':
Reading specs from /usr/lib/gcc-lib/alpha-linux/2.95.2/specs
gcc version 2.95.2 20000220 (Debian GNU/Linux)
/usr/lib/gcc-lib/alpha-linux/2.95.2/cpp -lang-c -v -I. -I. -I..
-I.. -I/usr/lib/glib/include -I/usr/X11R6/include -D__GNUC__=2
-D__GNUC_MINOR__=95 -Dlinux -Dunix -D_LONGLONG -D__alpha__
-D__ELF__ -D__linux__ -D__unix__ -D_LONGLONG -D__alpha__
-D__ELF__ -D__linux -D__unix -Asystem(linux) -D__OPTIMIZE__ -g
-Wall -D__LANGUAGE_C__ -D__LANGUAGE_C -DLANGUAGE_C -Acpu(alpha)
-Amachine(alpha) -D__alpha -D__alpha__ -D__alpha_ev4__
-Acpu(ev4) -DHAVE_CONFIG_H -DG_LOG_DOMAIN="Gtk"
-DGTK_DISABLE_COMPAT_H -DGTK_EXE_PREFIX="/usr/local"
-DGTK_DATA_PREFIX="/usr/local" -DGTK_SYSCONFDIR="/usr/local/etc"
-DGTK_LOCALEDIR="/usr/local/share/locale" -DGTK_NO_CHECK_CASTS
-DUSE_XIM -D_REENTRANT gtkhpaned.c gtkhpaned.i
GNU CPP version 2.95.2 20000220 (Debian GNU/Linux) (Alpha
GNU/Linux for ELF)
#include "..." search starts here:
#include <...> search starts here:
.
..
/usr/lib/glib/include
/usr/X11R6/include
/usr/local/include
/usr/lib/gcc-lib/alpha-linux/2.95.2/include
/usr/include
End of search list.
The following default directories have been omitted from the
search path:
/usr/lib/gcc-lib/alpha-linux/2.95.2/../../../../include/g++-3
/usr/lib/gcc-lib/alpha-linux/2.95.2/../../../../alpha-linux/inclu
de
End of omitted list.
/usr/lib/gcc-lib/alpha-linux/2.95.2/cc1 gtkhpaned.i -quiet
-dumpbase gtkhpaned.c -g -O2 -Wall -version -o gtkhpaned.s
GNU C version 2.95.2 20000220 (Debian GNU/Linux) (alpha-linux)
compiled by GNU C version 2.95.2 20000220 (Debian GNU/Linux).
as -o gtkhpaned.o gtkhpaned.s
I've also appended the .i file, but I don't think it will help
you much, since the problem will be in the assembly code
produced (however I don't have the slightest idea about Alpha
assembly, so I won't be able to help debugging)
Bye,
Konrad
________________________________________________________________
.~. Konrad Podloucky <konrad@pelimbert.tssc.univie.ac.at>
/V\ Running GNU/Linux 2.2.15pre11 on an Alpha
// \\ GnuPG/PGP-key available by request
/( )\ "Life is like a sewer. What you get out of it, depends
^^-^^ on what you put into it."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gtkhpaned.i.bz2
Type: application/x-bzip2
Size: 33043 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20000403/6b4d74f9/attachment.bz2>
More information about the Gcc-bugs
mailing list