From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18320 invoked by alias); 27 Mar 2002 10:56:05 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 18239 invoked by uid 71); 27 Mar 2002 10:56:03 -0000 Resent-Date: 27 Mar 2002 10:56:03 -0000 Resent-Message-ID: <20020327105603.18238.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, nirkko@dkf6.unibe.ch Received:(qmail 1389 invoked by uid 61); 27 Mar 2002 10:46:57 -0000 Message-Id:<20020327104657.1388.qmail@sources.redhat.com> Date: Wed, 27 Mar 2002 02:56:00 -0000 From: nirkko@dkf6.unibe.ch Reply-To: nirkko@dkf6.unibe.ch To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: optimization/6070: gcc-3.0.1 crashes (segfault) with -O3 when compiling gtk-2.0 X-SW-Source: 2002-03/txt/msg01036.txt.bz2 List-Id: >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 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: