public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/26476] New: ice for valid code with -O2 and -fpermissive @ 2006-02-26 22:32 dcb314 at hotmail dot com 2006-02-26 22:38 ` [Bug tree-optimization/26476] " dcb314 at hotmail dot com ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: dcb314 at hotmail dot com @ 2006-02-26 22:32 UTC (permalink / raw) To: gcc-bugs I just tried to compile Suse Linux package bochs-2.2.1-6 with a recent GNU C++ compiler version 4.2 snapshot 20060225. The compiler snapshot said g++ -c -I. -I./. -Iinstrument/stubs -I./instrument/stubs -O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fpermissive -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -pthread `sdl-config --cflags` `wx-config --cxxflags` -I/opt/gnome/include/gtk-2.0 -DBX_PLUGIN_PATH="\"/usr/lib64/bochs/plugins\"" -DBX_SHARE_PATH='"/usr/share/bochs"' logio.cc logio.cc:277: internal compiler error: in add_virtual_operand, at tree-ssa-operands.c:1867 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. Preprocessed source code attached. Flags -fpermissive and -O2 required. -- Summary: ice for valid code with -O2 and -fpermissive Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dcb314 at hotmail dot com GCC host triplet: x86_64-suse-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26476 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/26476] ice for valid code with -O2 and -fpermissive 2006-02-26 22:32 [Bug c++/26476] New: ice for valid code with -O2 and -fpermissive dcb314 at hotmail dot com @ 2006-02-26 22:38 ` dcb314 at hotmail dot com 2006-02-26 23:07 ` [Bug tree-optimization/26476] ice for valid code with -O2 pinskia at gcc dot gnu dot org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: dcb314 at hotmail dot com @ 2006-02-26 22:38 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from dcb314 at hotmail dot com 2006-02-26 22:32 ------- Created an attachment (id=10916) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10916&action=view) C++ source code -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26476 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/26476] ice for valid code with -O2 2006-02-26 22:32 [Bug c++/26476] New: ice for valid code with -O2 and -fpermissive dcb314 at hotmail dot com 2006-02-26 22:38 ` [Bug tree-optimization/26476] " dcb314 at hotmail dot com @ 2006-02-26 23:07 ` pinskia at gcc dot gnu dot org 2006-02-26 23:09 ` [Bug tree-optimization/26476] [4.2 Regression] " pinskia at gcc dot gnu dot org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2006-02-26 23:07 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from pinskia at gcc dot gnu dot org 2006-02-26 22:38 ------- Reducing (I have a code that already does not need -fpermissive). -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|ice for valid code with -O2 |ice for valid code with -O2 |and -fpermissive | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26476 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/26476] [4.2 Regression] ice for valid code with -O2 2006-02-26 22:32 [Bug c++/26476] New: ice for valid code with -O2 and -fpermissive dcb314 at hotmail dot com 2006-02-26 22:38 ` [Bug tree-optimization/26476] " dcb314 at hotmail dot com 2006-02-26 23:07 ` [Bug tree-optimization/26476] ice for valid code with -O2 pinskia at gcc dot gnu dot org @ 2006-02-26 23:09 ` pinskia at gcc dot gnu dot org 2006-02-26 23:55 ` pinskia at gcc dot gnu dot org 2006-03-01 18:29 ` pinskia at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2006-02-26 23:09 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from pinskia at gcc dot gnu dot org 2006-02-26 23:06 ------- Confirmed, reduced testcase: typedef struct logfunctions { char *prefix; int onoff[5]; }a; extern int default_onoff[5]; void f(a *t) { int i; for (i=0; i<5; i++) t->onoff[i] = default_onoff[i]; } ------- For some reason it is only reproduciable with 64 bit targets. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pinskia at gcc dot gnu dot | |org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 GCC target triplet|x86_64-suse-linux-gnu |64bit target Last reconfirmed|0000-00-00 00:00:00 |2006-02-26 23:06:59 date| | Summary|ice for valid code with -O2 |[4.2 Regression] ice for | |valid code with -O2 Target Milestone|--- |4.2.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26476 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/26476] [4.2 Regression] ice for valid code with -O2 2006-02-26 22:32 [Bug c++/26476] New: ice for valid code with -O2 and -fpermissive dcb314 at hotmail dot com ` (2 preceding siblings ...) 2006-02-26 23:09 ` [Bug tree-optimization/26476] [4.2 Regression] " pinskia at gcc dot gnu dot org @ 2006-02-26 23:55 ` pinskia at gcc dot gnu dot org 2006-03-01 18:29 ` pinskia at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2006-02-26 23:55 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from pinskia at gcc dot gnu dot org 2006-02-26 23:09 ------- I think this will be solved with the patch which solves PR 26443 as the ICE is also in VRP2. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- BugsThisDependsOn| |26443 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26476 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/26476] [4.2 Regression] ice for valid code with -O2 2006-02-26 22:32 [Bug c++/26476] New: ice for valid code with -O2 and -fpermissive dcb314 at hotmail dot com ` (3 preceding siblings ...) 2006-02-26 23:55 ` pinskia at gcc dot gnu dot org @ 2006-03-01 18:29 ` pinskia at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2006-03-01 18:29 UTC (permalink / raw) To: gcc-bugs ------- Comment #5 from pinskia at gcc dot gnu dot org 2006-03-01 18:29 ------- Confirmed, fixed with the patch for PR 26443. *** This bug has been marked as a duplicate of 26443 *** -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26476 ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-03-01 18:29 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2006-02-26 22:32 [Bug c++/26476] New: ice for valid code with -O2 and -fpermissive dcb314 at hotmail dot com 2006-02-26 22:38 ` [Bug tree-optimization/26476] " dcb314 at hotmail dot com 2006-02-26 23:07 ` [Bug tree-optimization/26476] ice for valid code with -O2 pinskia at gcc dot gnu dot org 2006-02-26 23:09 ` [Bug tree-optimization/26476] [4.2 Regression] " pinskia at gcc dot gnu dot org 2006-02-26 23:55 ` pinskia at gcc dot gnu dot org 2006-03-01 18:29 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).