public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/18134] New: computed goto and if statement
@ 2004-10-24 23:43 pinskia at gcc dot gnu dot org
2004-10-24 23:51 ` [Bug tree-optimization/18134] " steven at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-24 23:43 UTC (permalink / raw)
To: gcc-bugs
int foo (int a)
{
void *p;
if (a!=0)
p = &&L0;
else
p = &&L1;
goto *p;
L0:
return 1;
L1:
return 0;
}
this should be equivant to:
int foo(int a) { return a !=0;}
--
Summary: computed goto and if statement
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: missed-optimization, TREE
Severity: enhancement
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18134
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/18134] computed goto and if statement
2004-10-24 23:43 [Bug tree-optimization/18134] New: computed goto and if statement pinskia at gcc dot gnu dot org
@ 2004-10-24 23:51 ` steven at gcc dot gnu dot org
2004-10-24 23:55 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: steven at gcc dot gnu dot org @ 2004-10-24 23:51 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |18133
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18134
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/18134] computed goto and if statement
2004-10-24 23:43 [Bug tree-optimization/18134] New: computed goto and if statement pinskia at gcc dot gnu dot org
2004-10-24 23:51 ` [Bug tree-optimization/18134] " steven at gcc dot gnu dot org
@ 2004-10-24 23:55 ` pinskia at gcc dot gnu dot org
2005-01-26 18:33 ` steven at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-24 23:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-24 23:55 -------
Confirmed via Steven.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-10-24 23:55:33
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18134
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/18134] computed goto and if statement
2004-10-24 23:43 [Bug tree-optimization/18134] New: computed goto and if statement pinskia at gcc dot gnu dot org
2004-10-24 23:51 ` [Bug tree-optimization/18134] " steven at gcc dot gnu dot org
2004-10-24 23:55 ` pinskia at gcc dot gnu dot org
@ 2005-01-26 18:33 ` steven at gcc dot gnu dot org
2005-03-08 3:47 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-01-26 18:33 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From steven at gcc dot gnu dot org 2005-01-26 18:32 -------
With the patch attached to PR18133 we get:
foo:
xorl %eax, %eax
cmpl $0, 4(%esp)
setne %al
ret
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18134
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/18134] computed goto and if statement
2004-10-24 23:43 [Bug tree-optimization/18134] New: computed goto and if statement pinskia at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-01-26 18:33 ` steven at gcc dot gnu dot org
@ 2005-03-08 3:47 ` pinskia at gcc dot gnu dot org
2005-03-08 3:47 ` pinskia at gcc dot gnu dot org
2005-03-08 3:49 ` law at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-08 3:47 UTC (permalink / raw)
To: gcc-bugs
--
Bug 18134 depends on bug 18133, which changed state.
Bug 18133 Summary: computed gotos are not folded back to regular gotos when it is found that they are not computed gotos at all
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18133
What |Old Value |New Value
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18134
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/18134] computed goto and if statement
2004-10-24 23:43 [Bug tree-optimization/18134] New: computed goto and if statement pinskia at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-03-08 3:47 ` pinskia at gcc dot gnu dot org
@ 2005-03-08 3:47 ` pinskia at gcc dot gnu dot org
2005-03-08 3:49 ` law at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-08 3:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-08 03:47 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18134
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/18134] computed goto and if statement
2004-10-24 23:43 [Bug tree-optimization/18134] New: computed goto and if statement pinskia at gcc dot gnu dot org
` (4 preceding siblings ...)
2005-03-08 3:47 ` pinskia at gcc dot gnu dot org
@ 2005-03-08 3:49 ` law at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: law at redhat dot com @ 2005-03-08 3:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From law at redhat dot com 2005-03-08 03:49 -------
Fixed with today's checkin. I'll add a test to the testsuite too.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18134
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-03-08 3:49 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-24 23:43 [Bug tree-optimization/18134] New: computed goto and if statement pinskia at gcc dot gnu dot org
2004-10-24 23:51 ` [Bug tree-optimization/18134] " steven at gcc dot gnu dot org
2004-10-24 23:55 ` pinskia at gcc dot gnu dot org
2005-01-26 18:33 ` steven at gcc dot gnu dot org
2005-03-08 3:47 ` pinskia at gcc dot gnu dot org
2005-03-08 3:47 ` pinskia at gcc dot gnu dot org
2005-03-08 3:49 ` law at redhat dot 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).