This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/50195] [4.7 Regression] Linking time error with -fast-math -O0
- From: "hubicka at ucw dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 10 Oct 2011 16:25:15 +0000
- Subject: [Bug middle-end/50195] [4.7 Regression] Linking time error with -fast-math -O0
- Auto-submitted: auto-generated
- References: <bug-50195-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50195
--- Comment #6 from Jan Hubicka <hubicka at ucw dot cz> 2011-10-10 16:25:15 UTC ---
> The folding is guarded with optimize_function_for_speed_p (), but that always
> returns true for -O0 ...
>
> Honza, should the _for_speed_p () functions in predict.c be optimize && ...
> instead?
This is how we always behaved (i.e. when not optimizing we had optimize_size
false).
Switching the default may make sense, we might also hit some -Os bugs since -O0
gets more testing.
Honza