This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/33434] [4.3 Regression] inlining miscompilation
- 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: 16 Nov 2007 20:29:57 -0000
- Subject: [Bug tree-optimization/33434] [4.3 Regression] inlining miscompilation
- References: <bug-33434-7958@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #16 from jakub at gcc dot gnu dot org 2007-11-16 20:29 -------
Tried to bootstrap that, and while just for make check it basically just
needed gcc_assert (!value || !TREE_SIDE_EFFECTS (value));
because e.g. some Fortran testcases have value == NULL,
bootstrap fails, e.g. on i386.c.
Simplified testcase:
void * baz (void);
static void *
bar (void *x)
{
x = baz ();
return x;
}
void *
foo (void *x)
{
return bar (x);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33434