public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/50869] New: ice in vt_expand_var_loc_chain
@ 2011-10-25 18:45 dcb314 at hotmail dot com
  2011-10-25 19:08 ` [Bug debug/50869] [4.7 Regression] " pinskia at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: dcb314 at hotmail dot com @ 2011-10-25 18:45 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50869
           Summary: ice in vt_expand_var_loc_chain
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dcb314@hotmail.com


Created attachment 25613
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25613
C source code

I just tried to compile the package adanaxisgpl-1.2.5-6
on latest trunk snapshot 20111022 on an AMD x86_64 box.

The compiler said

MushRuby/eval.c: In function 'rb_funcall_rescue':
MushRuby/eval.c:6072:1: internal compiler error: in vt_expand_var_loc_chain, at
var-tracking.c:7798
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Preprocessed source code attached. Flags -g -O2 required.


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

* [Bug debug/50869] [4.7 Regression] ice in vt_expand_var_loc_chain
  2011-10-25 18:45 [Bug c/50869] New: ice in vt_expand_var_loc_chain dcb314 at hotmail dot com
@ 2011-10-25 19:08 ` pinskia at gcc dot gnu.org
  2011-10-27 11:50 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-10-25 19:08 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
          Component|c                           |debug
   Target Milestone|---                         |4.7.0
            Summary|ice in                      |[4.7 Regression] ice in
                   |vt_expand_var_loc_chain     |vt_expand_var_loc_chain


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

* [Bug debug/50869] [4.7 Regression] ice in vt_expand_var_loc_chain
  2011-10-25 18:45 [Bug c/50869] New: ice in vt_expand_var_loc_chain dcb314 at hotmail dot com
  2011-10-25 19:08 ` [Bug debug/50869] [4.7 Regression] " pinskia at gcc dot gnu.org
@ 2011-10-27 11:50 ` rguenth at gcc dot gnu.org
  2011-10-27 17:19 ` aoliva at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-10-27 11:50 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-*-*
           Priority|P3                          |P1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011-10-27
                 CC|                            |aoliva at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-10-27 11:47:06 UTC ---
Confirmed.


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

* [Bug debug/50869] [4.7 Regression] ice in vt_expand_var_loc_chain
  2011-10-25 18:45 [Bug c/50869] New: ice in vt_expand_var_loc_chain dcb314 at hotmail dot com
  2011-10-25 19:08 ` [Bug debug/50869] [4.7 Regression] " pinskia at gcc dot gnu.org
  2011-10-27 11:50 ` rguenth at gcc dot gnu.org
@ 2011-10-27 17:19 ` aoliva at gcc dot gnu.org
  2011-10-27 20:46 ` aoliva at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: aoliva at gcc dot gnu.org @ 2011-10-27 17:19 UTC (permalink / raw)
  To: gcc-bugs

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

Alexandre Oliva <aoliva at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |aoliva at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #2 from Alexandre Oliva <aoliva at gcc dot gnu.org> 2011-10-27 17:18:46 UTC ---
On it


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

* [Bug debug/50869] [4.7 Regression] ice in vt_expand_var_loc_chain
  2011-10-25 18:45 [Bug c/50869] New: ice in vt_expand_var_loc_chain dcb314 at hotmail dot com
                   ` (2 preceding siblings ...)
  2011-10-27 17:19 ` aoliva at gcc dot gnu.org
@ 2011-10-27 20:46 ` aoliva at gcc dot gnu.org
  2011-11-01  2:09 ` aoliva at gcc dot gnu.org
  2011-11-01 19:03 ` aoliva at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: aoliva at gcc dot gnu.org @ 2011-10-27 20:46 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Alexandre Oliva <aoliva at gcc dot gnu.org> 2011-10-27 20:46:12 UTC ---
Created attachment 25638
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25638
Patch that fixes the bug, testing

Here's a patch that fixes the bug.  We don't want cselib to expand argp, and
when it tries to we get all confused with a zero-depth expansion (the REG
itself) but with VALUEs associated with it, that cselib pointlessly tried to
expand, pushed onto the dependency stack.


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

* [Bug debug/50869] [4.7 Regression] ice in vt_expand_var_loc_chain
  2011-10-25 18:45 [Bug c/50869] New: ice in vt_expand_var_loc_chain dcb314 at hotmail dot com
                   ` (3 preceding siblings ...)
  2011-10-27 20:46 ` aoliva at gcc dot gnu.org
@ 2011-11-01  2:09 ` aoliva at gcc dot gnu.org
  2011-11-01 19:03 ` aoliva at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: aoliva at gcc dot gnu.org @ 2011-11-01  2:09 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Alexandre Oliva <aoliva at gcc dot gnu.org> 2011-11-01 02:09:04 UTC ---
Author: aoliva
Date: Tue Nov  1 02:09:00 2011
New Revision: 180725

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=180725
Log:
PR debug/50869
* cselib.c (cfa_base_preserved_regno): Initialize.
(cselib_expand_value_rtx_1): Don't expand it.
* var-tracking.c (vt_expand_var_loc_chain): Initialize depth.
Check it's only zero if result is NULL.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cselib.c
    trunk/gcc/var-tracking.c


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

* [Bug debug/50869] [4.7 Regression] ice in vt_expand_var_loc_chain
  2011-10-25 18:45 [Bug c/50869] New: ice in vt_expand_var_loc_chain dcb314 at hotmail dot com
                   ` (4 preceding siblings ...)
  2011-11-01  2:09 ` aoliva at gcc dot gnu.org
@ 2011-11-01 19:03 ` aoliva at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: aoliva at gcc dot gnu.org @ 2011-11-01 19:03 UTC (permalink / raw)
  To: gcc-bugs

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

Alexandre Oliva <aoliva at gcc dot gnu.org> changed:

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

--- Comment #5 from Alexandre Oliva <aoliva at gcc dot gnu.org> 2011-11-01 19:02:55 UTC ---
Fixed


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

end of thread, other threads:[~2011-11-01 19:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-25 18:45 [Bug c/50869] New: ice in vt_expand_var_loc_chain dcb314 at hotmail dot com
2011-10-25 19:08 ` [Bug debug/50869] [4.7 Regression] " pinskia at gcc dot gnu.org
2011-10-27 11:50 ` rguenth at gcc dot gnu.org
2011-10-27 17:19 ` aoliva at gcc dot gnu.org
2011-10-27 20:46 ` aoliva at gcc dot gnu.org
2011-11-01  2:09 ` aoliva at gcc dot gnu.org
2011-11-01 19:03 ` aoliva 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).