public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52247] New: [4.5/4.6/4.7 Regression] ICE with asm goto
@ 2012-02-14 15:13 jakub at gcc dot gnu.org
2012-02-14 15:47 ` [Bug c++/52247] " jakub at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-14 15:13 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52247
Bug #: 52247
Summary: [4.5/4.6/4.7 Regression] ICE with asm goto
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: c++
AssignedTo: jakub@gcc.gnu.org
ReportedBy: jakub@gcc.gnu.org
// { dg-do compile }
template <int N>
bool
bar ()
{
__asm goto ("" : : : : lab);
return true;
lab:
return false;
}
bool
foo ()
{
return bar<0> ();
}
ICEs, because pt.c doesn't adjust the LABEL_DECL properly.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/52247] [4.5/4.6/4.7 Regression] ICE with asm goto
2012-02-14 15:13 [Bug c++/52247] New: [4.5/4.6/4.7 Regression] ICE with asm goto jakub at gcc dot gnu.org
@ 2012-02-14 15:47 ` jakub at gcc dot gnu.org
2012-02-14 15:48 ` jakub at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-14 15:47 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52247
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.5.4
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/52247] [4.5/4.6/4.7 Regression] ICE with asm goto
2012-02-14 15:13 [Bug c++/52247] New: [4.5/4.6/4.7 Regression] ICE with asm goto jakub at gcc dot gnu.org
2012-02-14 15:47 ` [Bug c++/52247] " jakub at gcc dot gnu.org
@ 2012-02-14 15:48 ` jakub at gcc dot gnu.org
2012-02-14 19:52 ` jakub at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-14 15:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52247
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-14 15:48:16 UTC ---
Created attachment 26660
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26660
gcc47-pr52247.patch
Untested fix.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/52247] [4.5/4.6/4.7 Regression] ICE with asm goto
2012-02-14 15:13 [Bug c++/52247] New: [4.5/4.6/4.7 Regression] ICE with asm goto jakub at gcc dot gnu.org
2012-02-14 15:47 ` [Bug c++/52247] " jakub at gcc dot gnu.org
2012-02-14 15:48 ` jakub at gcc dot gnu.org
@ 2012-02-14 19:52 ` jakub at gcc dot gnu.org
2012-02-14 23:36 ` [Bug c++/52247] [4.5/4.6 " jakub at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-14 19:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52247
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-14 19:51:06 UTC ---
Author: jakub
Date: Tue Feb 14 19:51:01 2012
New Revision: 184229
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184229
Log:
PR c++/52247
* pt.c (tsubst_copy_asm_operands): For LABEL_DECL values call
lookup_label on label's name and set TREE_USED.
* g++.dg/template/asmgoto1.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/template/asmgoto1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/52247] [4.5/4.6 Regression] ICE with asm goto
2012-02-14 15:13 [Bug c++/52247] New: [4.5/4.6/4.7 Regression] ICE with asm goto jakub at gcc dot gnu.org
` (2 preceding siblings ...)
2012-02-14 19:52 ` jakub at gcc dot gnu.org
@ 2012-02-14 23:36 ` jakub at gcc dot gnu.org
2012-02-20 21:42 ` [Bug c++/52247] [4.5 " pinskia at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-14 23:36 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52247
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-14 23:36:24 UTC ---
Author: jakub
Date: Tue Feb 14 23:36:19 2012
New Revision: 184244
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184244
Log:
Backported from mainline
2012-02-14 Jakub Jelinek <jakub@redhat.com>
PR c++/52247
* pt.c (tsubst_copy_asm_operands): For LABEL_DECL values call
lookup_label on label's name and set TREE_USED.
* g++.dg/template/asmgoto1.C: New test.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/template/asmgoto1.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/pt.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/52247] [4.5 Regression] ICE with asm goto
2012-02-14 15:13 [Bug c++/52247] New: [4.5/4.6/4.7 Regression] ICE with asm goto jakub at gcc dot gnu.org
` (3 preceding siblings ...)
2012-02-14 23:36 ` [Bug c++/52247] [4.5/4.6 " jakub at gcc dot gnu.org
@ 2012-02-20 21:42 ` pinskia at gcc dot gnu.org
2012-06-20 13:18 ` rguenth at gcc dot gnu.org
2012-07-02 10:21 ` rguenth at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-02-20 21:42 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52247
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-02-20
Ever Confirmed|0 |1
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-02-20 21:40:12 UTC ---
Confirmed.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/52247] [4.5 Regression] ICE with asm goto
2012-02-14 15:13 [Bug c++/52247] New: [4.5/4.6/4.7 Regression] ICE with asm goto jakub at gcc dot gnu.org
` (4 preceding siblings ...)
2012-02-20 21:42 ` [Bug c++/52247] [4.5 " pinskia at gcc dot gnu.org
@ 2012-06-20 13:18 ` rguenth at gcc dot gnu.org
2012-07-02 10:21 ` rguenth at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-06-20 13:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52247
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/52247] [4.5 Regression] ICE with asm goto
2012-02-14 15:13 [Bug c++/52247] New: [4.5/4.6/4.7 Regression] ICE with asm goto jakub at gcc dot gnu.org
` (5 preceding siblings ...)
2012-06-20 13:18 ` rguenth at gcc dot gnu.org
@ 2012-07-02 10:21 ` rguenth at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-07-02 10:21 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52247
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|4.5.4 |4.6.3
--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-07-02 10:21:41 UTC ---
Fixed in 4.6.3.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-07-02 10:21 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-14 15:13 [Bug c++/52247] New: [4.5/4.6/4.7 Regression] ICE with asm goto jakub at gcc dot gnu.org
2012-02-14 15:47 ` [Bug c++/52247] " jakub at gcc dot gnu.org
2012-02-14 15:48 ` jakub at gcc dot gnu.org
2012-02-14 19:52 ` jakub at gcc dot gnu.org
2012-02-14 23:36 ` [Bug c++/52247] [4.5/4.6 " jakub at gcc dot gnu.org
2012-02-20 21:42 ` [Bug c++/52247] [4.5 " pinskia at gcc dot gnu.org
2012-06-20 13:18 ` rguenth at gcc dot gnu.org
2012-07-02 10:21 ` 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).