public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/46755] ICE: in calc_dfs_tree, at dominance.c:395 with -O
Date: Sun, 02 Jan 2011 23:13:00 -0000	[thread overview]
Message-ID: <bug-46755-4-pEA8bN5cSI@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-46755-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46755

--- Comment #9 from H.J. Lu <hjl.tools at gmail dot com> 2011-01-02 23:12:46 UTC ---
(In reply to comment #8)
> Not sure if this is still useful, but here's a fairly small failure-inducing
> testcase for this bug for today's GCC.
> 
> [regehr@gamow tmp437]$ current-gcc -O2 -c small.c
> 
> small.c: In function 'func':
> small.c:32:1: internal compiler error: in calc_dfs_tree, at dominance.c:395
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <http://gcc.gnu.org/bugs.html> for instructions.
> 
> [regehr@gamow tmp437]$ current-gcc -v
> 
> Using built-in specs.
> COLLECT_GCC=current-gcc
> COLLECT_LTO_WRAPPER=/uusoc/exports/scratch/regehr/z/compiler-install/gcc-r168402-install/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/lto-wrapper
> Target: x86_64-unknown-linux-gnu
> Configured with: ../configure --with-libelf=/usr/local --enable-lto
> --prefix=/home/regehr/z/compiler-install/gcc-r168402-install
> --program-prefix=r168402- --enable-languages=c,c++
> Thread model: posix
> gcc version 4.6.0 20110102 (experimental) (GCC) 
> 
> [regehr@gamow tmp437]$ cat small.c
> 
> 
> static int
> foo (int si1, short si2)
> {
>   return ((si1 ^ si2) & ((si1 ^ (si1 ^ si2) & ~2147483647) - si2 ^ si2)) <
>     0 ? si1 : si1 - si2;
> }
> 
> struct S0
> {
>   const unsigned f3:1;
>   const unsigned f8:1;
> };
> struct S0 g_111 = {
>   1
> };
> 
> struct S0 g_139 = {
>   1
> };
> 
> unsigned long int g_22;
> 
> void safe (int);
> int func_42 (void);
> 
> void func (void)
> {
>   safe (foo (func_42 () != (g_139.f3 | g_111.f8), -1L));
>   for (g_22 = 0; g_22; g_22 = 1)
>     {
>     }
> }

This is caused by revision 164431:

http://gcc.gnu.org/ml/gcc-cvs/2010-09/msg00727.html


  parent reply	other threads:[~2011-01-02 23:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-01 22:46 [Bug rtl-optimization/46755] New: " zsojka at seznam dot cz
2010-12-01 23:02 ` [Bug rtl-optimization/46755] " zsojka at seznam dot cz
2010-12-01 23:09 ` steven at gcc dot gnu.org
2010-12-03  8:25 ` zsojka at seznam dot cz
2010-12-17 20:40 ` steven at gcc dot gnu.org
2010-12-21 14:55 ` steven at gcc dot gnu.org
2010-12-21 20:17 ` jakub at gcc dot gnu.org
2010-12-21 20:55 ` steven at gcc dot gnu.org
2011-01-02 20:48 ` regehr at cs dot utah.edu
2011-01-02 23:13 ` hjl.tools at gmail dot com [this message]
2011-01-03 10:19 ` jakub at gcc dot gnu.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=bug-46755-4-pEA8bN5cSI@http.gcc.gnu.org/bugzilla/ \
    --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: link
Be 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).