This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Add -fobey-inline
Richard Guenther wrote:
This also shows why obeying inline by default for C++ like Mark
suggests is not a good idea (the numbers above are with
checking disabled and the old code size estimate). It also
hints at a fact that we have algorithms that are not linear
in function (or BB) size.
Very depressing. I'm not sure that I think that this proves that such a
switch is a bad idea in general, but it sure does suggest that it's not
a great idea to add this feature at this time; we need to figure out
what's going wrong with the optimizers when we actually do honor the
user's "inline" directives.
I agree that for 4.0 this probably takes this idea off the table; I
don't want to introduce a new option that will just make users who try
to use it unhappy.