From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31533 invoked by alias); 28 Jun 2004 02:23:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 31274 invoked by uid 48); 28 Jun 2004 02:23:30 -0000 Date: Mon, 28 Jun 2004 02:24:00 -0000 From: "brad at mainstreetsoftworks dot com" To: gcc-bugs@gcc.gnu.org Message-ID: <20040628022327.16239.brad@mainstreetsoftworks.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/16239] New: GCC 3.4.0 ICE on ppc64 (mozilla 1.7 compile, -O1 -fno-exceptions issue) X-Bugzilla-Reason: CC X-SW-Source: 2004-06/txt/msg03527.txt.bz2 List-Id: ICE on compile. Seems to be an issue with -O1 and -fno-exceptions on this particular mozilla file (at least that's what I've narrowed it down to). I've attached the pre-processed g++ -E output. It's using Gentoo's GCC 3.4.0-r6 ebuild, Tom Gall @ IBM told me to post, so blame him. :) Below are compile lines and info: ***************************** Full output from bad compile: ***************************** g++ -o nsXULContentBuilder.o -c -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -D_IMPL_NS_LAYOUT -I./../../../base/src -I./../../content/src -I../../../../dist/include/xpcom -I../../../../dist/include/string -I../../../../dist/include/js -I../../../../dist/include/xpconnect -I../../../../dist/include/caps -I../../../../dist/include/gfx -I../../../../dist/include/htmlparser -I../../../../dist/include/layout -I../../../../dist/include/content -I../../../../dist/include/widget -I../../../../dist/include/dom -I../../../../dist/include/rdf -I../../../../dist/include/necko -I../../../../dist/include/locale -I../../../../dist/include/unicharutil -I../../../../dist/include/xul -I../../../../dist/include/xuldoc -I../../../../dist/include/webshell -I../../../../dist/include/xultmpl -I../../../../dist/include -I/var/tmp/portage/mozilla-1.7/work/mozilla/dist/include/nspr -I/usr/X11R6/include -fPIC -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -mminimal-toc -fno-strict-aliasing -Wno-deprecated -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -ffunction-sections -O1 -g -I/usr/X11R6/include -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -Wp,-MD,.deps/nsXULContentBuilder.pp nsXULContentBuilder.cpp In file included from ./../../content/src/nsXULElement.h:64, from nsXULContentBuilder.cpp:70: ../../../../dist/include/dom/nsIDOMXULSelectCntrlEl.h:33: warning: `virtual nsresult nsIDOMXULSelectControlElement::GetSelectedItem(nsIDOMXULSelectControlItemElement**)' was hidden ../../../../dist/include/dom/nsIDOMXULMultSelectCntrlEl.h:69: warning: by `virtual nsresult nsIDOMXULMultiSelectControlElement::GetSelectedItem(PRInt32, nsIDOMXULSelectControlItemElement**)' nsXULTemplateBuilder.h:94: warning: `virtual nsresult nsXULTemplateBuilder::Init(nsIContent*)' was hidden nsXULContentBuilder.cpp:146: warning: by `nsresult nsXULContentBuilder::Init()' nsXULContentBuilder.cpp: In member function `nsresult nsXULContentBuilder::BuildContentFromTemplate(nsIContent*, nsIContent*, nsIContent*, PRBool, nsIRDFResource*, PRBool, nsTemplateMatch*, nsIContent**, PRInt32*)': nsXULContentBuilder.cpp:85: error: insn does not satisfy its constraints: (insn 6646 6645 6534 78 (set (reg/v/f:DI 63 31 [orig:978 data ] [978]) (plus:DI (reg/v/f:DI 63 31 [orig:978 data ] [978]) (const_int 232 [0xe8]))) 233 {*adddi3_internal1} (nil) (expr_list:REG_EQUIV (plus:DI (reg/f:DI 1 1) (const_int 232 [0xe8])) (nil))) nsXULContentBuilder.cpp:85: internal compiler error: in reload_cse_simplify_operands, at postreload.c:378 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Preprocessed source stored into /tmp/ccLIxm5i.out file, please attach this to your bugreport. ******************************************* Full Compile command for pre-processed code ******************************************* g++ -O1 -fPIC -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -mminimal-toc -fno-strict-aliasing -Wno-deprecated -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -ffunction-sections -Wp,-MD,.deps/nsXULContentBuilder.pp -o /tmp/nsXULContentBuilder.o -c /tmp/nsXULContentBuilder.CPP ******************************************** Bad option is -fno-exceptions BUT ONLY IF -O1 is specified with it -O2 does NOT exhibit the issue ******************************************** ppc64 src # g++ -fno-exceptions -o /tmp/nsXULContentBuilder.o -c /tmp/nsXULContentBuilder.CPP ppc64 src # g++ -O2 -fno-exceptions -o /tmp/nsXULContentBuilder.o -c /tmp/nsXULContentBuilder.CPP ppc64 src # g++ -O1 -fno-exceptions -o /tmp/nsXULContentBuilder.o -c /tmp/nsXULContentBuilder.CPP nsXULContentBuilder.cpp: In member function `nsresult nsXULContentBuilder::BuildContentFromTemplate(nsIContent*, nsIContent*, nsIContent*, PRBool, nsIRDFResource*, PRBool, nsTemplateMatch*, nsIContent**, PRInt32*)': nsXULContentBuilder.cpp:825: error: insn does not satisfy its constraints: (insn 6646 6645 6535 78 (set (reg/v/f:DI 63 31 [orig:979 data ] [979]) (plus:DI (reg/v/f:DI 63 31 [orig:979 data ] [979]) (const_int 232 [0xe8]))) 233 {*adddi3_internal1} (nil) (expr_list:REG_EQUIV (plus:DI (reg/f:DI 1 1) (const_int 232 [0xe8])) (nil))) nsXULContentBuilder.cpp:825: internal compiler error: in reload_cse_simplify_operands, at postreload.c:378 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Preprocessed source stored into /tmp/ccNgrrOI.out file, please attach this to your bugreport. -- Summary: GCC 3.4.0 ICE on ppc64 (mozilla 1.7 compile, -O1 -fno- exceptions issue) Product: gcc Version: 3.4.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: brad at mainstreetsoftworks dot com CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16239