public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/43156] [4.5 Regression] SPU-elf ICEs on simple programs
  2010-02-23 21:29 [Bug rtl-optimization/43156] New: [4.5 Regression] SPU-elf ICEs on simple programs pinskia at gcc dot gnu dot org
@ 2010-02-23 21:29 ` pinskia at gcc dot gnu dot org
  2010-03-01 11:52 ` rguenth at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-02-23 21:29 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rth at gcc dot gnu dot org,
                   |                            |rguenth at gcc dot gnu dot
                   |                            |org
   Target Milestone|---                         |4.5.0


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


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

* [Bug rtl-optimization/43156]  New: [4.5 Regression] SPU-elf ICEs on simple programs
@ 2010-02-23 21:29 pinskia at gcc dot gnu dot org
  2010-02-23 21:29 ` [Bug rtl-optimization/43156] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-02-23 21:29 UTC (permalink / raw)
  To: gcc-bugs

As mentioned here:
http://gcc.gnu.org/ml/gcc-patches/2010-02/msg00780.html
Just building a simple: int main(void) { return 0; }
ICEs at -O1 or -O2.  This ICEs as we call add_reg_note with an insn note:
(note 21 12 22 2 NOTE_INSN_DELETED)
And REG_NOTES causes the next insn rtx gets modified for some reason.


-- 
           Summary: [4.5 Regression] SPU-elf ICEs on simple programs
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, build
          Severity: blocker
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
GCC target triplet: spu-elf


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


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

* [Bug rtl-optimization/43156] [4.5 Regression] SPU-elf ICEs on simple programs
  2010-02-23 21:29 [Bug rtl-optimization/43156] New: [4.5 Regression] SPU-elf ICEs on simple programs pinskia at gcc dot gnu dot org
  2010-02-23 21:29 ` [Bug rtl-optimization/43156] " pinskia at gcc dot gnu dot org
@ 2010-03-01 11:52 ` rguenth at gcc dot gnu dot org
  2010-03-01 15:46 ` pinskia at gmail dot com
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-03-01 11:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2010-03-01 11:51 -------
spu-elf is neither a primary nor a secondary platform.  But, confirmed, as
I originally reported this.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Priority|P3                          |P4
   Last reconfirmed|0000-00-00 00:00:00         |2010-03-01 11:51:50
               date|                            |


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


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

* [Bug rtl-optimization/43156] [4.5 Regression] SPU-elf ICEs on simple programs
  2010-02-23 21:29 [Bug rtl-optimization/43156] New: [4.5 Regression] SPU-elf ICEs on simple programs pinskia at gcc dot gnu dot org
  2010-02-23 21:29 ` [Bug rtl-optimization/43156] " pinskia at gcc dot gnu dot org
  2010-03-01 11:52 ` rguenth at gcc dot gnu dot org
@ 2010-03-01 15:46 ` pinskia at gmail dot com
  2010-03-13 23:42 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gmail dot com @ 2010-03-01 15:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gmail dot com  2010-03-01 15:45 -------
Subject: Re:  [4.5 Regression] SPU-elf ICEs on simple programs



Sent from my iPhone

On Mar 1, 2010, at 3:51 AM, "rguenth at gcc dot gnu dot org"
<gcc-bugzilla@gcc.gnu.org 
 > wrote:

>
>
> ------- Comment #1 from rguenth at gcc dot gnu dot org  2010-03-01  
> 11:51 -------
> spu-elf is neither a primary nor a secondary platform.  But,  
> confirmed, as
> I originally reported this.


My anaylis of this bug is that this bug is very generic and could  
cause issues on any target.



>
>
> -- 
>
> rguenth at gcc dot gnu dot org changed:
>
>           What    |Removed                     |Added
> --- 
> --- 
> ----------------------------------------------------------------------
>             Status|UNCONFIRMED                 |NEW
>     Ever Confirmed|0                           |1
>           Priority|P3                          |P4
>   Last reconfirmed|0000-00-00 00:00:00         |2010-03-01 11:51:50
>               date|                            |
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43156
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.


-- 


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


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

* [Bug rtl-optimization/43156] [4.5 Regression] SPU-elf ICEs on simple programs
  2010-02-23 21:29 [Bug rtl-optimization/43156] New: [4.5 Regression] SPU-elf ICEs on simple programs pinskia at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2010-03-01 15:46 ` pinskia at gmail dot com
@ 2010-03-13 23:42 ` pinskia at gcc dot gnu dot org
  2010-03-14  0:00 ` [Bug target/43156] " pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-03-13 23:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2010-03-13 23:42 -------
With RTL checking turned on, we get

t.c:4:1: internal compiler error: RTL check: access of elt 7 of 'note' with
last elt 6 in add_reg_note, at rtlanal.c:1902

Which is what I expected to get.  I forgot that rtl checking is disabled by
default.


-- 


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


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

* [Bug target/43156] [4.5 Regression] SPU-elf ICEs on simple programs
  2010-02-23 21:29 [Bug rtl-optimization/43156] New: [4.5 Regression] SPU-elf ICEs on simple programs pinskia at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2010-03-13 23:42 ` pinskia at gcc dot gnu dot org
@ 2010-03-14  0:00 ` pinskia at gcc dot gnu dot org
  2010-03-14  0:02 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-03-14  0:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2010-03-13 23:59 -------
So right after the NOTE_INSN_EPILOGUE_BEG, we have a NOTE_INSN_DELETED.  The
spu back-end emits it with a comment of:
  /* A NOTE_INSN_DELETED is supposed to be at the start and end of
     the "toplevel" insn chain.  */
  emit_note (NOTE_INSN_DELETED);

Ok, this is a target issue, no other target emits the note at the beginging of
the epilogue at all.  The comment about toplevel insn chain is not true here as
we are always inside a function here.  The comment was copied from rs6000 where
it was emitting the "text" based epilogue (or rather the non scheduled version)
which is not considered inside a function at that point.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|rtl-optimization            |target


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


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

* [Bug target/43156] [4.5 Regression] SPU-elf ICEs on simple programs
  2010-02-23 21:29 [Bug rtl-optimization/43156] New: [4.5 Regression] SPU-elf ICEs on simple programs pinskia at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2010-03-14  0:00 ` [Bug target/43156] " pinskia at gcc dot gnu dot org
@ 2010-03-14  0:02 ` pinskia at gcc dot gnu dot org
  2010-03-15  9:55 ` rguenther at suse dot de
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-03-14  0:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2010-03-14 00:02 -------
Created an attachment (id=20102)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20102&action=view)
Patch that needs testing

I don't have a machine setup up to test this patch on but it works for the
simple testcase in the bug report.


-- 


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


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

* [Bug target/43156] [4.5 Regression] SPU-elf ICEs on simple programs
  2010-02-23 21:29 [Bug rtl-optimization/43156] New: [4.5 Regression] SPU-elf ICEs on simple programs pinskia at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2010-03-14  0:02 ` pinskia at gcc dot gnu dot org
@ 2010-03-15  9:55 ` rguenther at suse dot de
  2010-03-20 17:46 ` pinskia at gcc dot gnu dot org
  2010-03-20 17:46 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: rguenther at suse dot de @ 2010-03-15  9:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rguenther at suse dot de  2010-03-15 09:55 -------
Subject: Re:  [4.5 Regression] SPU-elf ICEs on simple
 programs

On Sun, 14 Mar 2010, pinskia at gcc dot gnu dot org wrote:

> ------- Comment #5 from pinskia at gcc dot gnu dot org  2010-03-14 00:02 -------
> Created an attachment (id=20102)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20102&action=view)
>  --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20102&action=view)
> Patch that needs testing
> 
> I don't have a machine setup up to test this patch on but it works for the
> simple testcase in the bug report.

It looks obvious to me.


-- 


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


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

* [Bug target/43156] [4.5 Regression] SPU-elf ICEs on simple programs
  2010-02-23 21:29 [Bug rtl-optimization/43156] New: [4.5 Regression] SPU-elf ICEs on simple programs pinskia at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2010-03-20 17:46 ` pinskia at gcc dot gnu dot org
@ 2010-03-20 17:46 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-03-20 17:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from pinskia at gcc dot gnu dot org  2010-03-20 17:46 -------
Subject: Bug 43156

Author: pinskia
Date: Sat Mar 20 17:45:37 2010
New Revision: 157596

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157596
Log:
2010-03-20  Andrew Pinski  <pinskia@gmail.com>

        PR target/43156
        * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
        at the begining or end.
        (spu_expand_epilogue): Likewise.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/spu/spu.c


-- 


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


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

* [Bug target/43156] [4.5 Regression] SPU-elf ICEs on simple programs
  2010-02-23 21:29 [Bug rtl-optimization/43156] New: [4.5 Regression] SPU-elf ICEs on simple programs pinskia at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2010-03-15  9:55 ` rguenther at suse dot de
@ 2010-03-20 17:46 ` pinskia at gcc dot gnu dot org
  2010-03-20 17:46 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-03-20 17:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pinskia at gcc dot gnu dot org  2010-03-20 17:45 -------
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2010-03-20 17:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-23 21:29 [Bug rtl-optimization/43156] New: [4.5 Regression] SPU-elf ICEs on simple programs pinskia at gcc dot gnu dot org
2010-02-23 21:29 ` [Bug rtl-optimization/43156] " pinskia at gcc dot gnu dot org
2010-03-01 11:52 ` rguenth at gcc dot gnu dot org
2010-03-01 15:46 ` pinskia at gmail dot com
2010-03-13 23:42 ` pinskia at gcc dot gnu dot org
2010-03-14  0:00 ` [Bug target/43156] " pinskia at gcc dot gnu dot org
2010-03-14  0:02 ` pinskia at gcc dot gnu dot org
2010-03-15  9:55 ` rguenther at suse dot de
2010-03-20 17:46 ` pinskia at gcc dot gnu dot org
2010-03-20 17:46 ` pinskia 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).