c tree inlining vs dwarf2

Alexandre Oliva aoliva@redhat.com
Tue Oct 9 23:38:00 GMT 2001


On Oct  8, 2001, Richard Henderson <rth@redhat.com> wrote:

> Dwarf2 expects any function that has been inlined to have the DECL_INLINE
> bit set.  Failure to do so will get it confused and abort trying to create
> a second die for the function.

Oops.  Would you believe I recalled dwarf2 depended on DECL_INLINE,
but disregarded the problem when the x86 -O3 bootstrap didn't fail :-(

> The C++ front end distinguishes between whether a function is declared
> inline, and whether it is inlinable.  At -O3, it sets DECL_INLINE on
> pretty much all functions.

> This changes the C front end to do the same thing.

Thanks!

May I suggest the following patch as a complement to yours?  Ok to
install?



More information about the Gcc-patches mailing list