public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/37969] [4.3 Regression] "-O2 -funswitch-loops" causes ICE in build_int_cst_wide, at tree.c:891 (OpenOffice.org) Date: Thu, 06 Nov 2008 13:25:00 -0000 [thread overview] Message-ID: <20081106132402.27744.qmail@sourceware.org> (raw) In-Reply-To: <bug-37969-13159@http.gcc.gnu.org/bugzilla/> ------- Comment #9 from rguenth at gcc dot gnu dot org 2008-11-06 13:24 ------- We ICE during greg trying to do #3 0x0000000000d86888 in force_const_mem (mode=DFmode, x=0x7ffff7e7c410) at /space/rguenther/src/svn/gcc-4_3-branch/gcc/varasm.c:3535 3535 align = CONSTANT_ALIGNMENT (make_tree (type, x), align); (gdb) l 3530 align = GET_MODE_ALIGNMENT (mode == VOIDmode ? word_mode : mode); 3531 #ifdef CONSTANT_ALIGNMENT 3532 { 3533 tree type = lang_hooks.types.type_for_mode (mode, 0); 3534 if (type != NULL_TREE) 3535 align = CONSTANT_ALIGNMENT (make_tree (type, x), align); 3536 } 3537 #endif and call make_tree with (const_int 1 [0x1]) and double. Oops. More reduced C testcase: void foo(double); void CreateDefaultTexture(double mnMinimum, double mnMaximum, unsigned short nCreateWhat) { double d = 0.0; for(;;) { if(nCreateWhat & (0x0001) && mnMinimum != 0.0) d = mnMinimum; if(nCreateWhat & (0x0002) && mnMaximum != 0.0) d = mnMaximum; foo(d); } } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37969
next prev parent reply other threads:[~2008-11-06 13:25 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-10-30 21:02 [Bug c++/37969] New: " h dot mth at web dot de 2008-10-30 21:23 ` [Bug middle-end/37969] " rguenth at gcc dot gnu dot org 2008-10-30 23:17 ` h dot mth at web dot de 2008-10-30 23:24 ` rguenth at gcc dot gnu dot org 2008-10-30 23:28 ` rguenth at gcc dot gnu dot org 2008-10-30 23:51 ` rguenth at gcc dot gnu dot org 2008-10-30 23:53 ` [Bug tree-optimization/37969] [4.3 Regression] " rguenth at gcc dot gnu dot org 2008-10-31 10:44 ` h dot mth at web dot de 2008-10-31 10:57 ` h dot mth at web dot de 2008-11-03 11:27 ` jakub at gcc dot gnu dot org 2008-11-06 13:25 ` rguenth at gcc dot gnu dot org [this message] 2008-11-06 13:30 ` rguenth at gcc dot gnu dot org 2008-11-06 14:05 ` rguenth 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=20081106132402.27744.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).