public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/51768] New: [4.5/4.6/4.7 Regression] ICE with invalid asm goto
@ 2012-01-05 15:48 jakub at gcc dot gnu.org
  2012-01-05 15:55 ` [Bug middle-end/51768] " jakub at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-01-05 15:48 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51768
           Summary: [4.5/4.6/4.7 Regression] ICE with invalid asm goto
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jakub@gcc.gnu.org


void
foo (void)
{
  asm goto ("" : : : : lab, lab, lab2, lab);/* { dg-error "duplicate asm
operand name" } */
lab:;
lab2:;
}

void
bar (void)
{
  asm goto ("" : : [lab] "i" (0) : : lab);/* { dg-error "duplicate asm operand
name" } */
lab:;
}

ICEs with tree-checking (or just crashes during error reporting if not tree
checking).


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

* [Bug middle-end/51768] [4.5/4.6/4.7 Regression] ICE with invalid asm goto
  2012-01-05 15:48 [Bug middle-end/51768] New: [4.5/4.6/4.7 Regression] ICE with invalid asm goto jakub at gcc dot gnu.org
@ 2012-01-05 15:55 ` jakub at gcc dot gnu.org
  2012-01-05 15:57 ` jakub at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-01-05 15:55 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.5.4


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

* [Bug middle-end/51768] [4.5/4.6/4.7 Regression] ICE with invalid asm goto
  2012-01-05 15:48 [Bug middle-end/51768] New: [4.5/4.6/4.7 Regression] ICE with invalid asm goto jakub at gcc dot gnu.org
  2012-01-05 15:55 ` [Bug middle-end/51768] " jakub at gcc dot gnu.org
@ 2012-01-05 15:57 ` jakub at gcc dot gnu.org
  2012-01-05 20:19 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-01-05 15:57 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2012-01-05
         AssignedTo|unassigned at gcc dot       |jakub at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-05 15:56:53 UTC ---
Created attachment 26254
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26254
gcc47-pr51768.patch

Untested fix.


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

* [Bug middle-end/51768] [4.5/4.6/4.7 Regression] ICE with invalid asm goto
  2012-01-05 15:48 [Bug middle-end/51768] New: [4.5/4.6/4.7 Regression] ICE with invalid asm goto jakub at gcc dot gnu.org
  2012-01-05 15:55 ` [Bug middle-end/51768] " jakub at gcc dot gnu.org
  2012-01-05 15:57 ` jakub at gcc dot gnu.org
@ 2012-01-05 20:19 ` jakub at gcc dot gnu.org
  2012-01-05 20:22 ` [Bug middle-end/51768] [4.5/4.6 " jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-01-05 20:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-05 20:18:38 UTC ---
Author: jakub
Date: Thu Jan  5 20:18:15 2012
New Revision: 182921

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182921
Log:
    PR middle-end/51768
    * stmt.c (check_unique_operand_names): Don't ICE during error
    reporting if i is from labels chain.

    * c-c++-common/pr51768.c: New test.

Added:
    trunk/gcc/testsuite/c-c++-common/pr51768.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/stmt.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug middle-end/51768] [4.5/4.6 Regression] ICE with invalid asm goto
  2012-01-05 15:48 [Bug middle-end/51768] New: [4.5/4.6/4.7 Regression] ICE with invalid asm goto jakub at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2012-01-05 20:19 ` jakub at gcc dot gnu.org
@ 2012-01-05 20:22 ` jakub at gcc dot gnu.org
  2012-02-09 17:22 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-01-05 20:22 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.5/4.6/4.7 Regression]    |[4.5/4.6 Regression] ICE
                   |ICE with invalid asm goto   |with invalid asm goto

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-05 20:21:14 UTC ---
Fixed on the trunk so far.


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

* [Bug middle-end/51768] [4.5/4.6 Regression] ICE with invalid asm goto
  2012-01-05 15:48 [Bug middle-end/51768] New: [4.5/4.6/4.7 Regression] ICE with invalid asm goto jakub at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2012-01-05 20:22 ` [Bug middle-end/51768] [4.5/4.6 " jakub at gcc dot gnu.org
@ 2012-02-09 17:22 ` jakub at gcc dot gnu.org
  2012-02-09 21:35 ` [Bug middle-end/51768] [4.5 " jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-09 17:22 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-09 17:21:45 UTC ---
Author: jakub
Date: Thu Feb  9 17:21:15 2012
New Revision: 184054

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184054
Log:
    Backported from mainline
    2012-01-05  Jakub Jelinek  <jakub@redhat.com>

    PR middle-end/51768
    * stmt.c (check_unique_operand_names): Don't ICE during error
    reporting if i is from labels chain.

    * c-c++-common/pr51768.c: New test.

Added:
    branches/gcc-4_6-branch/gcc/testsuite/c-c++-common/pr51768.c
Modified:
    branches/gcc-4_6-branch/gcc/ChangeLog
    branches/gcc-4_6-branch/gcc/stmt.c
    branches/gcc-4_6-branch/gcc/testsuite/ChangeLog


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

* [Bug middle-end/51768] [4.5 Regression] ICE with invalid asm goto
  2012-01-05 15:48 [Bug middle-end/51768] New: [4.5/4.6/4.7 Regression] ICE with invalid asm goto jakub at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2012-02-09 17:22 ` jakub at gcc dot gnu.org
@ 2012-02-09 21:35 ` jakub at gcc dot gnu.org
  2012-02-09 21:46 ` jakub at gcc dot gnu.org
  2012-06-12  3:49 ` jye2 at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-09 21:35 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-09 21:35:40 UTC ---
Author: jakub
Date: Thu Feb  9 21:35:36 2012
New Revision: 184071

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184071
Log:
    Backported from mainline
    2012-01-05  Jakub Jelinek  <jakub@redhat.com>

    PR middle-end/51768
    * stmt.c (check_unique_operand_names): Don't ICE during error
    reporting if i is from labels chain.

    * c-c++-common/pr51768.c: New test.

Added:
    branches/gcc-4_5-branch/gcc/testsuite/c-c++-common/pr51768.c
Modified:
    branches/gcc-4_5-branch/gcc/ChangeLog
    branches/gcc-4_5-branch/gcc/stmt.c
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog


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

* [Bug middle-end/51768] [4.5 Regression] ICE with invalid asm goto
  2012-01-05 15:48 [Bug middle-end/51768] New: [4.5/4.6/4.7 Regression] ICE with invalid asm goto jakub at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2012-02-09 21:35 ` [Bug middle-end/51768] [4.5 " jakub at gcc dot gnu.org
@ 2012-02-09 21:46 ` jakub at gcc dot gnu.org
  2012-06-12  3:49 ` jye2 at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-09 21:46 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-09 21:46:19 UTC ---
Fixed.


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

* [Bug middle-end/51768] [4.5 Regression] ICE with invalid asm goto
  2012-01-05 15:48 [Bug middle-end/51768] New: [4.5/4.6/4.7 Regression] ICE with invalid asm goto jakub at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2012-02-09 21:46 ` jakub at gcc dot gnu.org
@ 2012-06-12  3:49 ` jye2 at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: jye2 at gcc dot gnu.org @ 2012-06-12  3:49 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from jye2 at gcc dot gnu.org 2012-06-12 03:49:37 UTC ---
Author: jye2
Date: Tue Jun 12 03:49:33 2012
New Revision: 188419

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=188419
Log:
2012-06-12  Joey Ye  <joey.ye@arm.com>

    Backport r182921 from mainline
    2012-01-05  Jakub Jelinek  <jakub@redhat.com>

    PR middle-end/51768
    * stmt.c (check_unique_operand_names): Don't ICE during error
    reporting if i is from labels chain.

testsuite:

    Backport r182921 from mainline
    2012-01-05  Jakub Jelinek  <jakub@redhat.com>

    PR middle-end/51768
    * c-c++-common/pr51768.c: New test.

Added:
    branches/ARM/embedded-4_6-branch/gcc/testsuite/c-c++-common/pr51768.c
Modified:
    branches/ARM/embedded-4_6-branch/gcc/ChangeLog.arm
    branches/ARM/embedded-4_6-branch/gcc/stmt.c
    branches/ARM/embedded-4_6-branch/gcc/testsuite/ChangeLog.arm


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

end of thread, other threads:[~2012-06-12  3:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-05 15:48 [Bug middle-end/51768] New: [4.5/4.6/4.7 Regression] ICE with invalid asm goto jakub at gcc dot gnu.org
2012-01-05 15:55 ` [Bug middle-end/51768] " jakub at gcc dot gnu.org
2012-01-05 15:57 ` jakub at gcc dot gnu.org
2012-01-05 20:19 ` jakub at gcc dot gnu.org
2012-01-05 20:22 ` [Bug middle-end/51768] [4.5/4.6 " jakub at gcc dot gnu.org
2012-02-09 17:22 ` jakub at gcc dot gnu.org
2012-02-09 21:35 ` [Bug middle-end/51768] [4.5 " jakub at gcc dot gnu.org
2012-02-09 21:46 ` jakub at gcc dot gnu.org
2012-06-12  3:49 ` jye2 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).