This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
optimization/6070: gcc-3.0.1 crashes (segfault) with -O3 when compiling gtk-2.0
- From: nirkko at dkf6 dot unibe dot ch
- To: gcc-gnats at gcc dot gnu dot org
- Date: 27 Mar 2002 10:46:57 -0000
- Subject: optimization/6070: gcc-3.0.1 crashes (segfault) with -O3 when compiling gtk-2.0
- Reply-to: nirkko at dkf6 dot unibe dot ch
>Number: 6070
>Category: optimization
>Synopsis: gcc-3.0.1 crashes (segfault) with -O3 when compiling gtk-2.0
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 27 02:56:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: nirkko@dkf6.unibe.ch
>Release: gcc-3.0.1
>Organization:
>Environment:
sparc-sun-solaris2.6
>Description:
gcc-3.0.1 crashes (segfault) with -O3 when compiling
gtk-2.0.0 and asks me to submit a bug report.
when changing -O3 to -O2 for this file (see output below,
other flags unmodified), compilation works fine.
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gtk\"
-DGTK_LIBDIR=\"/usr/local/lib\"
-DGTK_DATA_PREFIX=\"/usr/local\"
-DGTK_SYSCONFDIR=\"/usr/local/etc\"
-DGTK_LOCALEDIR=\"/usr/local/lib/locale\"
-DGTK_VERSION=\"2.0.0\" -DGTK_BINARY_VERSION=\"2.0.0\"
-DGTK_HOST=\"sparc-sun-solaris2.6\"
-DGTK_COMPILATION
-I../gtk -I.. -I../gdk -I../gdk -I../gdk-pixbuf
-I../gdk-pixbuf -DG_DISABLE_CAST_CHECKS
-I/usr/local/include/pango-1.0 -I/usr/openwin/include
-I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include
-I/usr/local/include/atk-1.0
-Wall -fPIC -O3 -funroll-loops -msupersparc
-Qn -Wa,-Qn -fno-ident -s -c gtkentry.c
-fPIC -DPIC -o gtkentry.o
gtkentry.c: In function `gtk_entry_class_init':
gtkentry.c:732: Internal error: Segmentation Fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
gmake[3]: *** [gtkentry.lo] Error 1
gmake[3]: Leaving directory `/_mnt/hd2/package/gtk/src/gtk+-2.0.0-bimbo2.6/gtk'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/_mnt/hd2/package/gtk/src/gtk+-2.0.0-bimbo2.6/gtk'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/_mnt/hd2/package/gtk/src/gtk+-2.0.0-bimbo2.6'
gmake: *** [all-recursive-am] Error 2
gcc -v output (gcc itself has been created with -O3, but
had no problems up to now):
gcc -v
Reading specs from /usr/local/links/bin/../lib/gcc-lib/sparc-sun-solaris2.6/3.0.1/specs
Configured with: /_mnt/hd2/package/gcc/gcc-3.0.1-bimbo2.6/configure --prefix=/usr/local/gcc-3.0.1 --disable-shared --enable-threads --with-cpu=supersparc --enable-cpp --enable-version-specific-runtime-libs --disable-nls
Thread model: posix
gcc version 3.0.1
>How-To-Repeat:
download gtk-2.0.0 from www.gtk.org,
try to compile gtkentry.c on a sparc/solaris2.6 system
with gcc-3.0.1 with above flags.
>Fix:
use -O2 instead of -O3 for that file.
>Release-Note:
>Audit-Trail:
>Unformatted: