public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/49493] New: ICE: in insert_vi_for_tree, at tree-ssa-structalias.c:2637 with -O -fipa-pta
@ 2011-06-21 18:54 zsojka at seznam dot cz
  2011-06-22  9:18 ` [Bug tree-optimization/49493] " rguenth at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: zsojka at seznam dot cz @ 2011-06-21 18:54 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: ICE: in insert_vi_for_tree, at
                    tree-ssa-structalias.c:2637 with -O -fipa-pta
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz
                CC: rguenth@gcc.gnu.org
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu


Created attachment 24574
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24574
reduced testcase

Maybe the same as PR41378

Compiler output:
$ gcc -O -fipa-pta testcase.c 
testcase.c:3:1: internal compiler error: in insert_vi_for_tree, at
tree-ssa-structalias.c:2637
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


(gdb) bt
#0  fancy_abort (file=0x11fb598
"/mnt/svn/gcc-trunk/gcc/tree-ssa-structalias.c", line=2637, function=0x11fbe40
"insert_vi_for_tree")
    at /mnt/svn/gcc-trunk/gcc/diagnostic.c:892
#1  0x0000000000a6ab1b in insert_vi_for_tree (t=Unhandled dwarf expression
opcode 0xf3
) at /mnt/svn/gcc-trunk/gcc/tree-ssa-structalias.c:2637
#2  0x0000000000a6ab32 in associate_varinfo_to_alias_1 (node=Unhandled dwarf
expression opcode 0xf3
) at /mnt/svn/gcc-trunk/gcc/tree-ssa-structalias.c:6694
#3  0x0000000000b314b0 in varpool_for_node_and_aliases (node=0x7ffff5901138,
callback=0xa6ab20 <associate_varinfo_to_alias_1>, data=0x18bf820, 
    include_overwritable=1 '\001') at /mnt/svn/gcc-trunk/gcc/varpool.c:757
#4  0x0000000000b3153b in varpool_for_node_and_aliases (node=0x7ffff59010d0,
callback=0xa6ab20 <associate_varinfo_to_alias_1>, data=0x18bf820, 
    include_overwritable=1 '\001') at /mnt/svn/gcc-trunk/gcc/varpool.c:765
#5  0x0000000000a77f3c in ipa_pta_execute () at
/mnt/svn/gcc-trunk/gcc/tree-ssa-structalias.c:6734
#6  0x000000000086352e in execute_one_pass (pass=0x16c34c0) at
/mnt/svn/gcc-trunk/gcc/passes.c:2023
#7  0x0000000000863c9a in execute_ipa_pass_list (pass=0x16c34c0) at
/mnt/svn/gcc-trunk/gcc/passes.c:2390
#8  0x0000000000616cf9 in ipa_passes () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:2034
#9  cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:2069
#10 0x0000000000616eea in cgraph_finalize_compilation_unit () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1292
#11 0x00000000004fe6f8 in c_write_global_declarations () at
/mnt/svn/gcc-trunk/gcc/c-decl.c:9844
#12 0x000000000094e3e4 in compile_file (argc=14, argv=0x7fffffffdae8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:587
#13 do_compile (argc=14, argv=0x7fffffffdae8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:1924
#14 toplev_main (argc=14, argv=0x7fffffffdae8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:1996
#15 0x00007ffff6414d2d in __libc_start_main () from /lib64/libc.so.6
#16 0x00000000004e2835 in _start ()

Tested revisions:
r175265 - crash


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

* [Bug tree-optimization/49493] ICE: in insert_vi_for_tree, at tree-ssa-structalias.c:2637 with -O -fipa-pta
  2011-06-21 18:54 [Bug tree-optimization/49493] New: ICE: in insert_vi_for_tree, at tree-ssa-structalias.c:2637 with -O -fipa-pta zsojka at seznam dot cz
@ 2011-06-22  9:18 ` rguenth at gcc dot gnu.org
  2011-06-22 18:02 ` rguenth at gcc dot gnu.org
  2011-06-22 18:03 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-06-22  9:18 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2011.06.22 09:17:55
         AssignedTo|unassigned at gcc dot       |rguenth at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-06-22 09:17:55 UTC ---
Mine.


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

* [Bug tree-optimization/49493] ICE: in insert_vi_for_tree, at tree-ssa-structalias.c:2637 with -O -fipa-pta
  2011-06-21 18:54 [Bug tree-optimization/49493] New: ICE: in insert_vi_for_tree, at tree-ssa-structalias.c:2637 with -O -fipa-pta zsojka at seznam dot cz
  2011-06-22  9:18 ` [Bug tree-optimization/49493] " rguenth at gcc dot gnu.org
@ 2011-06-22 18:02 ` rguenth at gcc dot gnu.org
  2011-06-22 18:03 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-06-22 18:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-06-22 18:02:09 UTC ---
Author: rguenth
Date: Wed Jun 22 18:02:06 2011
New Revision: 175300

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175300
Log:
2011-06-22  Richard Guenther  <rguenther@suse.de>

    PR tree-optimization/49493
    * tree-ssa-structalias.c (get_constraint_for_ssa_var):
    Refer to the alias target of variables.
    (associate_varinfo_to_alias_1): Remove.
    (ipa_pta_execute): Do not associate aliases with anything.
    * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
    (cgraph_function_node): Likewise.
    (cgraph_function_or_thunk_node): Likewise.
    (varpool_variable_node): Likewise.

    * gcc.dg/ipa/ipa-pta-17.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/ipa/ipa-pta-17.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cgraph.h
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-structalias.c


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

* [Bug tree-optimization/49493] ICE: in insert_vi_for_tree, at tree-ssa-structalias.c:2637 with -O -fipa-pta
  2011-06-21 18:54 [Bug tree-optimization/49493] New: ICE: in insert_vi_for_tree, at tree-ssa-structalias.c:2637 with -O -fipa-pta zsojka at seznam dot cz
  2011-06-22  9:18 ` [Bug tree-optimization/49493] " rguenth at gcc dot gnu.org
  2011-06-22 18:02 ` rguenth at gcc dot gnu.org
@ 2011-06-22 18:03 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-06-22 18:03 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to work|                            |4.7.0
         Resolution|                            |FIXED
   Target Milestone|---                         |4.7.0
      Known to fail|4.7.0                       |

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-06-22 18:03:38 UTC ---
Fixed for trunk.


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

end of thread, other threads:[~2011-06-22 18:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-21 18:54 [Bug tree-optimization/49493] New: ICE: in insert_vi_for_tree, at tree-ssa-structalias.c:2637 with -O -fipa-pta zsojka at seznam dot cz
2011-06-22  9:18 ` [Bug tree-optimization/49493] " rguenth at gcc dot gnu.org
2011-06-22 18:02 ` rguenth at gcc dot gnu.org
2011-06-22 18:03 ` rguenth at gcc dot gnu.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).