public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "ehrhardt at mathematik dot uni-ulm dot de" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/17027] [3.4 Regression] ICE with switch in while (-mcpu=v9 -O2) Date: Tue, 17 Aug 2004 09:09:00 -0000 [thread overview] Message-ID: <20040817090859.30585.qmail@sourceware.org> (raw) In-Reply-To: <20040814151417.17027.sfc@village.uunet.be> ------- Additional Comments From ehrhardt at mathematik dot uni-ulm dot de 2004-08-17 09:08 ------- I can confirm this on sparc-sun-solaris2.9. It requires -mcpu=v9 though which is interesting because the crash seems to happen in apparently arch independant code (see backtrace below): I use the following cleaned up testcase: /* Compile with -O2 -mcpu=v9 */ int bar(void); void baz (void) __attribute__ ((noreturn)); /* noreturn is required */ int foo; void f (void) { while (bar ()) { switch (1) { default: baz (); } } } Program received signal SIGSEGV, Segmentation fault. 0x000a8928 in cfg_layout_finalize () at /home/thales/ehrhardt/gcc-3.4-cvs/gcc/gcc/cfglayout.c:869 869 c = c->rbi->next; (gdb) bt #0 0x000a8928 in cfg_layout_finalize () at /home/thales/ehrhardt/gcc-3.4-cvs/gcc/gcc/cfglayout.c:869 #1 0x002b268c in reorder_basic_blocks (flags=100) at /home/thales/ehrhardt/gcc-3.4-cvs/gcc/gcc/bb-reorder.c:1115 #2 0x00267c70 in rest_of_compilation (decl=0xff172500) at /home/thales/ehrhardt/gcc-3.4-cvs/gcc/gcc/toplev.c:2332 #3 0x002abcf8 in tree_rest_of_compilation (fndecl=0xff172500, nested_p=false) at /home/thales/ehrhardt/gcc-3.4-cvs/gcc/gcc/tree-optimize.c:168 #4 0x00031c18 in c_expand_body_1 (fndecl=0xff172500, nested_p=0) at /home/thales/ehrhardt/gcc-3.4-cvs/gcc/gcc/c-decl.c:6158 #5 0x002add28 in cgraph_expand_function (node=0xff172980) at /home/thales/ehrhardt/gcc-3.4-cvs/gcc/gcc/cgraphunit.c:538 #6 0x002afc70 in cgraph_optimize () at /home/thales/ehrhardt/gcc-3.4-cvs/gcc/gcc/cgraphunit.c:1542 #7 0x0006d310 in c_objc_common_finish_file () at /home/thales/ehrhardt/gcc-3.4-cvs/gcc/gcc/c-objc-common.c:245 #8 0x0026932c in toplev_main (argc=3845120, argv=0x3ab000) at /home/thales/ehrhardt/gcc-3.4-cvs/gcc/gcc/toplev.c -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2004-08-17 09:08:58 date| | Summary|[3.4 Regression] ICE with |[3.4 Regression] ICE with |switch in while |switch in while (-mcpu=v9 - | |O2) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17027
next prev parent reply other threads:[~2004-08-17 9:09 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-08-14 15:14 [Bug c/17027] New: ICE with switch in while sfc at village dot uunet dot be 2004-08-14 15:17 ` [Bug c/17027] " sfc at village dot uunet dot be 2004-08-14 15:18 ` sfc at village dot uunet dot be 2004-08-14 15:20 ` sfc at village dot uunet dot be 2004-08-14 18:09 ` [Bug rtl-optimization/17027] [3.4/3.5? Regression] " pinskia at gcc dot gnu dot org 2004-08-15 13:49 ` ebotcazou at gcc dot gnu dot org 2004-08-16 8:26 ` [Bug rtl-optimization/17027] [3.4 " pinskia at gcc dot gnu dot org 2004-08-16 10:38 ` giovannibajo at libero dot it 2004-08-16 14:05 ` sfc at village dot uunet dot be 2004-08-17 9:09 ` ehrhardt at mathematik dot uni-ulm dot de [this message] 2004-08-17 9:22 ` [Bug rtl-optimization/17027] [3.4 Regression] ICE with switch in while (-mcpu=v9 -O2) pinskia at gcc dot gnu dot org 2004-08-29 18:12 ` mmitchel at gcc dot gnu dot org 2004-08-29 18:16 ` mmitchel at gcc dot gnu dot org 2004-09-03 14:45 ` [Bug rtl-optimization/17027] [3.4 Regression] ICE with noreturn function in loop at -O2 ebotcazou at gcc dot gnu dot org 2004-09-03 14:56 ` Christian Ehrhardt 2004-09-03 14:56 ` ehrhardt at mathematik dot uni-ulm dot de 2004-10-03 14:52 ` [Bug rtl-optimization/17027] [3.4 regression] " ebotcazou at gcc dot gnu dot org 2004-10-05 20:58 ` pinskia at gcc dot gnu dot org 2004-10-07 6:12 ` cvs-commit at gcc dot gnu dot org 2004-10-07 6:13 ` ebotcazou at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20040817090859.30585.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).