public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/23384] New: Clobber list should be flow sensitive
@ 2005-08-14 6:17 pinskia at gcc dot gnu dot org
2005-08-31 16:04 ` [Bug tree-optimization/23384] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-14 6:17 UTC (permalink / raw)
To: gcc-bugs
Take the following code:
struct f
{
int i;
int j;
};
void g(void);
void i(struct f*);
int kk(void)
{
struct f a;
int j;
a.i = 1;
a.j =2 ;
g();
j = a.i;
i(&a);
return j;
}
---
j should be changed to 1 as the address of a is not escape until after the call to i so g should not get a
call clobbered for the SFT's of a.
--
Summary: Clobber list should be flow sensitive
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: missed-optimization
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=23384
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-08-31 16:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-14 6:17 [Bug tree-optimization/23384] New: Clobber list should be flow sensitive pinskia at gcc dot gnu dot org
2005-08-31 16:04 ` [Bug tree-optimization/23384] " 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).