public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/58463] New: ICE with -fdump-tree-all-all in vector indexed access
@ 2013-09-18 15:12 paulo@matos-sorge.com
  2013-09-19 16:37 ` [Bug middle-end/58463] " mpolacek at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: paulo@matos-sorge.com @ 2013-09-18 15:12 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58463
           Summary: ICE with -fdump-tree-all-all in vector indexed access
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: paulo@matos-sorge.com

Created attachment 30855
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30855&action=edit
Code example to reproduce ICE

GCC tries to access varmap through get_varinfo in tree-ssa-structalias.c, but
it fails with an ICE.

I have attached a reduced code example to reproduce the problem.

The command line and output with 4.8.1 is:
$ ~/work/tmp/gcc-4.8.1/gcc/cc1 -fpreprocessed -fdump-tree-all-all -O2
core_list_join.i 
core_list_join.i:4:1: warning: no semicolon at end of struct or union [enabled
by default]
 }
 ^
 fn1
Analyzing compilation unit
Performing interprocedural optimizations
 <*free_lang_data> <visibility> <early_local_cleanups>
core_list_join.i: In function 'fn1':
core_list_join.i:9:1: internal compiler error: in operator[], at vec.h:815
 }
 ^
0xbfd572 vec<variable_info*, va_heap, vl_embed>::operator[](unsigned int)
        /home/pmatos/work/gcc-releases/gcc-4.8.1/gcc/vec.h:815
0xbfcea0 vec<variable_info*, va_heap, vl_ptr>::operator[](unsigned int)
        /home/pmatos/work/gcc-releases/gcc-4.8.1/gcc/vec.h:1244
0xbeb5ba get_varinfo
        /home/pmatos/work/gcc-releases/gcc-4.8.1/gcc/tree-ssa-structalias.c:319
0xbefa59 perform_var_substitution
       
/home/pmatos/work/gcc-releases/gcc-4.8.1/gcc/tree-ssa-structalias.c:2244
0xbfb279 solve_constraints
       
/home/pmatos/work/gcc-releases/gcc-4.8.1/gcc/tree-ssa-structalias.c:6569
0xbfb679 compute_points_to_sets
       
/home/pmatos/work/gcc-releases/gcc-4.8.1/gcc/tree-ssa-structalias.c:6665
0xbfbdca compute_may_aliases()
       
/home/pmatos/work/gcc-releases/gcc-4.8.1/gcc/tree-ssa-structalias.c:6814
0x967b9e execute_function_todo
        /home/pmatos/work/gcc-releases/gcc-4.8.1/gcc/passes.c:1941
0x966f88 do_per_function
        /home/pmatos/work/gcc-releases/gcc-4.8.1/gcc/passes.c:1701
0x967d64 execute_todo
        /home/pmatos/work/gcc-releases/gcc-4.8.1/gcc/passes.c:1996
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.


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

* [Bug middle-end/58463] ICE with -fdump-tree-all-all in vector indexed access
  2013-09-18 15:12 [Bug middle-end/58463] New: ICE with -fdump-tree-all-all in vector indexed access paulo@matos-sorge.com
@ 2013-09-19 16:37 ` mpolacek at gcc dot gnu.org
  2013-09-20  7:50 ` rguenth at gcc dot gnu.org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-09-19 16:37 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I think this has been already fixed.


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

* [Bug middle-end/58463] ICE with -fdump-tree-all-all in vector indexed access
  2013-09-18 15:12 [Bug middle-end/58463] New: ICE with -fdump-tree-all-all in vector indexed access paulo@matos-sorge.com
  2013-09-19 16:37 ` [Bug middle-end/58463] " mpolacek at gcc dot gnu.org
@ 2013-09-20  7:50 ` rguenth at gcc dot gnu.org
  2013-09-20  8:51 ` paulo@matos-sorge.com
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-09-20  7:50 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2013-09-20
     Ever confirmed|0                           |1

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Can you check whether backporting

Author: rguenth
Date: Wed Mar 27 15:10:50 2013
New Revision: 197165

URL: http://gcc.gnu.org/viewcvs?rev=197165&root=gcc&view=rev
Log:
2013-03-27  Richard Biener  <rguenther@suse.de>

    PR tree-optimization/56716
    * tree-ssa-structalias.c (perform_var_substitution): Adjust
    dumping for ref nodes.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-ssa-structalias.c

fixes this isssue?


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

* [Bug middle-end/58463] ICE with -fdump-tree-all-all in vector indexed access
  2013-09-18 15:12 [Bug middle-end/58463] New: ICE with -fdump-tree-all-all in vector indexed access paulo@matos-sorge.com
  2013-09-19 16:37 ` [Bug middle-end/58463] " mpolacek at gcc dot gnu.org
  2013-09-20  7:50 ` rguenth at gcc dot gnu.org
@ 2013-09-20  8:51 ` paulo@matos-sorge.com
  2013-09-20  9:00 ` paulo@matos-sorge.com
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: paulo@matos-sorge.com @ 2013-09-20  8:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Paulo J. Matos <paulo@matos-sorge.com> ---
Thanks Richard, will check.


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

* [Bug middle-end/58463] ICE with -fdump-tree-all-all in vector indexed access
  2013-09-18 15:12 [Bug middle-end/58463] New: ICE with -fdump-tree-all-all in vector indexed access paulo@matos-sorge.com
                   ` (2 preceding siblings ...)
  2013-09-20  8:51 ` paulo@matos-sorge.com
@ 2013-09-20  9:00 ` paulo@matos-sorge.com
  2013-09-20 10:07 ` rguenther at suse dot de
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: paulo@matos-sorge.com @ 2013-09-20  9:00 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Paulo J. Matos <paulo@matos-sorge.com> ---
Backporting fixes the problem. Can we go ahead and backport to 4.8?

Can we add the testcase to the testsuite as well please?


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

* [Bug middle-end/58463] ICE with -fdump-tree-all-all in vector indexed access
  2013-09-18 15:12 [Bug middle-end/58463] New: ICE with -fdump-tree-all-all in vector indexed access paulo@matos-sorge.com
                   ` (3 preceding siblings ...)
  2013-09-20  9:00 ` paulo@matos-sorge.com
@ 2013-09-20 10:07 ` rguenther at suse dot de
  2013-09-20 10:29 ` paulo@matos-sorge.com
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenther at suse dot de @ 2013-09-20 10:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from rguenther at suse dot de <rguenther at suse dot de> ---
On Fri, 20 Sep 2013, paulo@matos-sorge.com wrote:

> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58463
> 
> --- Comment #4 from Paulo J. Matos <paulo@matos-sorge.com> ---
> Backporting fixes the problem. Can we go ahead and backport to 4.8?

Feel free to do the backport - I don't have time for it right now.

Richard.


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

* [Bug middle-end/58463] ICE with -fdump-tree-all-all in vector indexed access
  2013-09-18 15:12 [Bug middle-end/58463] New: ICE with -fdump-tree-all-all in vector indexed access paulo@matos-sorge.com
                   ` (4 preceding siblings ...)
  2013-09-20 10:07 ` rguenther at suse dot de
@ 2013-09-20 10:29 ` paulo@matos-sorge.com
  2013-09-27 14:54 ` pmatos at gcc dot gnu.org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: paulo@matos-sorge.com @ 2013-09-20 10:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Paulo J. Matos <paulo@matos-sorge.com> ---
(In reply to rguenther@suse.de from comment #5)
> On Fri, 20 Sep 2013, paulo@matos-sorge.com wrote:
> 
> > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58463
> > 
> > --- Comment #4 from Paulo J. Matos <paulo@matos-sorge.com> ---
> > Backporting fixes the problem. Can we go ahead and backport to 4.8?
> 
> Feel free to do the backport - I don't have time for it right now.
> 
> Richard.

Sure, no problem. If by doing the backport you mean sending the relevant
patches to gcc-patches then I will do that today.

Thanks.


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

* [Bug middle-end/58463] ICE with -fdump-tree-all-all in vector indexed access
  2013-09-18 15:12 [Bug middle-end/58463] New: ICE with -fdump-tree-all-all in vector indexed access paulo@matos-sorge.com
                   ` (5 preceding siblings ...)
  2013-09-20 10:29 ` paulo@matos-sorge.com
@ 2013-09-27 14:54 ` pmatos at gcc dot gnu.org
  2013-09-27 16:30 ` [Bug tree-optimization/58463] " pmatos at gcc dot gnu.org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pmatos at gcc dot gnu.org @ 2013-09-27 14:54 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from pmatos at gcc dot gnu.org ---
Author: pmatos
Date: Fri Sep 27 14:54:43 2013
New Revision: 202976

URL: http://gcc.gnu.org/viewcvs?rev=202976&root=gcc&view=rev
Log:
    PR middle-end/58463
        * gcc.dg/pr58463.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr58463.c
Modified:
    trunk/gcc/ChangeLog


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

* [Bug tree-optimization/58463] ICE with -fdump-tree-all-all in vector indexed access
  2013-09-18 15:12 [Bug middle-end/58463] New: ICE with -fdump-tree-all-all in vector indexed access paulo@matos-sorge.com
                   ` (6 preceding siblings ...)
  2013-09-27 14:54 ` pmatos at gcc dot gnu.org
@ 2013-09-27 16:30 ` pmatos at gcc dot gnu.org
  2013-09-27 16:44 ` [Bug middle-end/58463] " pmatos at gcc dot gnu.org
  2013-09-27 16:46 ` paulo@matos-sorge.com
  9 siblings, 0 replies; 11+ messages in thread
From: pmatos at gcc dot gnu.org @ 2013-09-27 16:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from pmatos at gcc dot gnu.org ---
Author: pmatos
Date: Fri Sep 27 16:30:15 2013
New Revision: 202978

URL: http://gcc.gnu.org/viewcvs?rev=202978&root=gcc&view=rev
Log:
        Backport from mainline.

        2013-09-27  Paulo Matos  <pmatos@broadcom.com>
        PR middle-end/58463
        * gcc.dg/pr58463.c: New test.

Added:
    branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/pr58463.c
Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog


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

* [Bug middle-end/58463] ICE with -fdump-tree-all-all in vector indexed access
  2013-09-18 15:12 [Bug middle-end/58463] New: ICE with -fdump-tree-all-all in vector indexed access paulo@matos-sorge.com
                   ` (7 preceding siblings ...)
  2013-09-27 16:30 ` [Bug tree-optimization/58463] " pmatos at gcc dot gnu.org
@ 2013-09-27 16:44 ` pmatos at gcc dot gnu.org
  2013-09-27 16:46 ` paulo@matos-sorge.com
  9 siblings, 0 replies; 11+ messages in thread
From: pmatos at gcc dot gnu.org @ 2013-09-27 16:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from pmatos at gcc dot gnu.org ---
Author: pmatos
Date: Fri Sep 27 16:44:39 2013
New Revision: 202979

URL: http://gcc.gnu.org/viewcvs?rev=202979&root=gcc&view=rev
Log:
        Backport from mainline.

         PR middle-end/58463
         2013-03-27  Richard Biener  <rguenther@suse.de>

         PR tree-optimization/56716
         * tree-ssa-structalias.c (perform_var_substitution): Adjust
         dumping for ref nodes.

Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/tree-ssa-structalias.c


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

* [Bug middle-end/58463] ICE with -fdump-tree-all-all in vector indexed access
  2013-09-18 15:12 [Bug middle-end/58463] New: ICE with -fdump-tree-all-all in vector indexed access paulo@matos-sorge.com
                   ` (8 preceding siblings ...)
  2013-09-27 16:44 ` [Bug middle-end/58463] " pmatos at gcc dot gnu.org
@ 2013-09-27 16:46 ` paulo@matos-sorge.com
  9 siblings, 0 replies; 11+ messages in thread
From: paulo@matos-sorge.com @ 2013-09-27 16:46 UTC (permalink / raw)
  To: gcc-bugs

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

Paulo J. Matos <paulo@matos-sorge.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |FIXED

--- Comment #11 from Paulo J. Matos <paulo@matos-sorge.com> ---
Backported Richard's patch to branch 4.8 under r202979.
Will mark as fixed.


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

end of thread, other threads:[~2013-09-27 16:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-18 15:12 [Bug middle-end/58463] New: ICE with -fdump-tree-all-all in vector indexed access paulo@matos-sorge.com
2013-09-19 16:37 ` [Bug middle-end/58463] " mpolacek at gcc dot gnu.org
2013-09-20  7:50 ` rguenth at gcc dot gnu.org
2013-09-20  8:51 ` paulo@matos-sorge.com
2013-09-20  9:00 ` paulo@matos-sorge.com
2013-09-20 10:07 ` rguenther at suse dot de
2013-09-20 10:29 ` paulo@matos-sorge.com
2013-09-27 14:54 ` pmatos at gcc dot gnu.org
2013-09-27 16:30 ` [Bug tree-optimization/58463] " pmatos at gcc dot gnu.org
2013-09-27 16:44 ` [Bug middle-end/58463] " pmatos at gcc dot gnu.org
2013-09-27 16:46 ` paulo@matos-sorge.com

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).