This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/41436] [4.5 regression] Revision 152018 failed to bootstrap on i386
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Sep 2009 10:41:21 -0000
- Subject: [Bug bootstrap/41436] [4.5 regression] Revision 152018 failed to bootstrap on i386
- References: <bug-41436-279@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from jakub at gcc dot gnu dot org 2009-09-23 10:41 -------
r152018 seems to change generated code even on:
/* { dg-options "-O2 -m32 -fno-inline -mtune=generic" } */
struct S
{
const char *s1;
int s2;
char s3;
};
static struct S s;
static inline const char *
bar (void)
{
s.s3 = 0;
return s.s1;
}
const char *
foo (void)
{
return bar ();
}
In bar %esi is saved, even when clearly no nested functions are involved.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41436