This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix tree-inliner and remove DECL_NUM_STMTS


Hi,

The tree-inliner should not check for DECL_LANG_SPECIFIC.  Fortran,
for example, doesn't have a DECL_LANG_SPECIFIC for FUNCITON_DECLs.
Seems like this just worked by accident, or perhaps the original
purpose for DECL_INLINED_FNS (preventing functions from being dumped
by the garbage collector???) is now gone.   I'm really not sure we
need DECL_INLINED_FNS at all, now that we have the call graph code.
I don't have time to try that out now, unfortunately...

DECL_NUM_STMTS is a relic from when we estimated function body sizes
by counting statements.  Fortunately we have something better now,
and this macro can go away.

Booted+tested on x86_64-unknown-linux-gnu, OK?

Gr.
Steven

Attachment: patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]