------- Comment #11 from hubicka at ucw dot cz 2007-06-23 12:33 -------
Subject: Re: [4.3 Regression] ice for legal code with flags -O2
-fno-unit-at-a-time
> > I will check it tomorrow. However why users use -fno-unit-at-a-time at
> > all? Do you have some idea what packages, except for kernel, use it?
>
> Haskell
Hmm, I wonder why they need it:
[Use -fno-strict-aliasing for *all* C files in the runtime
Simon Marlow <[EMAIL PROTECTED]>**20060629082902
as a precautionary measure. It is definitely required for GC.c,
but it may well become necessary for other files in the future due to
our (mis-)use of the C "type system".
]
Are there any other packages or the "important portion" referred to
haskell?
Anyway, I am testing the attached fix, it was simple ordering problem
triggering hack checking analyzed flag someone added into tree-inline.
extern __inline double
strtod (void)
{
}
strtol (void)
{
return strtod ();
}
PR middle-end/30563
* cgraphunit.c (cgraph_analyze_function): Fix ordering problem.
Index: cgraphunit.c
===================================================================
--- cgraphunit.c (revision 125970)
+++ cgraphunit.c (working copy)
@@ -760,6 +760,7 @@ cgraph_analyze_function (struct cgraph_n
current_function_decl = decl;
push_cfun (DECL_STRUCT_FUNCTION (decl));
cgraph_lower_function (node);
+ node->analyzed = true;
if (!flag_unit_at_a_time)
{
@@ -771,7 +772,6 @@ cgraph_analyze_function (struct cgraph_n
bitmap_obstack_release (NULL);
}
- node->analyzed = true;
pop_cfun ();
current_function_decl = NULL;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30563