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]

Re: eliminating debug info for symbols/types in unexpanded inlines


Hi,

On Wed, 6 May 2009, Jim Wilson wrote:

> The problem here is that we emit debug info if TREE_USED is set, but
> TREE_USED is set at parse time, before we have identified unused inline
> functions.

+   used_flag_expand:
+
+       TREE_USED_EXPAND in
+           PARM_DECL, VAR_DECL, FUNCTION_DECL, RESULT_DECL

PARM_DECL and RESULT_DECL never should be DECL_EXTERNAL_P.  And why isn't 
TREE_ASM_WRITTEN enough for external decls?  After all that's exactly what 
you're trying to check: if there's something in the .o file about symbol S 
(for whatever reason) you want to have debug info for it.


Ciao,
Michael.


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