public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/44890]  New: Hitting gcc_assert in build2_stat with pr30388.c testsuite test case
@ 2010-07-09 14:36 bergner at gcc dot gnu dot org
  2010-07-09 14:48 ` [Bug middle-end/44890] " pinskia at gmail dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: bergner at gcc dot gnu dot org @ 2010-07-09 14:36 UTC (permalink / raw)
  To: gcc-bugs

The pr30388.c test case ICE's on trunk and powerpc64-linux with the following
options: -Os -m64

Looking at a backtrace, we're hitting this assert in tree.c:build2_stat():

  if (code == POINTER_PLUS_EXPR && arg0 && arg1 && tt)
    gcc_assert (POINTER_TYPE_P (tt) && POINTER_TYPE_P (TREE_TYPE (arg0))
                && INTEGRAL_TYPE_P (TREE_TYPE (arg1))
                && useless_type_conversion_p (sizetype, TREE_TYPE (arg1)));

gdb shows this:

(gdb) frame 1
#1  0x000000001066de84 in build2_stat (code=POINTER_PLUS_EXPR,
tt=0x40000410000, arg0=0x400005112e8, arg1=0x400003104b0)
    at /home/bergner/gcc/gcc-mainline-r161924/gcc/tree.c:3715
3715        gcc_assert (POINTER_TYPE_P (tt) && POINTER_TYPE_P (TREE_TYPE
(arg0))

(gdb) call debug_tree(tt)
 <integer_type 0x40000410000 long unsigned int public unsigned sizetype DI
    size <integer_cst 0x40000310780 type <integer_type 0x400004100a8
bit_size_type> constant 64>
    unit size <integer_cst 0x400003107a8 type <integer_type 0x40000410000 long
unsigned int> constant 8>
    align 64 symtab 0 alias set -1 canonical type 0x40000410000 precision 64
min <integer_cst 0x400003107d0 0> max <integer_cst 0x40000310aa0 -1>>

(gdb) call debug_tree(arg0)
 <ssa_name 0x400005112e8
    type <integer_type 0x40000410000 long unsigned int public unsigned sizetype
DI
        size <integer_cst 0x40000310780 constant 64>
        unit size <integer_cst 0x400003107a8 constant 8>
        align 64 symtab 0 alias set -1 canonical type 0x40000410000 precision
64 min <integer_cst 0x400003107d0 0> max <integer_cst 0x40000310aa0 -1>>
    visited var <var_decl 0x400004f1fe0 D.2060>def_stmt D.2060_43 = ivtmp.27_37
+ D.2059_42; version 43>

(gdb) call debug_tree(arg1)
 <integer_cst 0x400003104b0 type <integer_type 0x40000410000 long unsigned int>
constant 1>


-- 
           Summary: Hitting gcc_assert in build2_stat with pr30388.c
                    testsuite test case
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bergner at gcc dot gnu dot org
 GCC build triplet: powerpc64-linux
  GCC host triplet: powerpc64-linux
GCC target triplet: powerpc64-linux


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-07-09 18:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-09 14:36 [Bug middle-end/44890] New: Hitting gcc_assert in build2_stat with pr30388.c testsuite test case bergner at gcc dot gnu dot org
2010-07-09 14:48 ` [Bug middle-end/44890] " pinskia at gmail dot com
2010-07-09 14:48 ` [Bug middle-end/44890] New: " Andrew Pinski
2010-07-09 14:54 ` [Bug middle-end/44890] " bergner at gcc dot gnu dot org
2010-07-09 15:15 ` rguenth at gcc dot gnu dot org
2010-07-09 16:08 ` bergner at gcc dot gnu dot org
2010-07-09 16:25 ` bergner at gcc dot gnu dot org
2010-07-09 16:28 ` rguenth at gcc dot gnu dot org
2010-07-09 16:35 ` rguenth at gcc dot gnu dot org
2010-07-09 16:35 ` bergner at gcc dot gnu dot org
2010-07-09 18:32 ` rguenth at gcc dot gnu dot org
2010-07-09 18:32 ` rguenth 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).