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: [LTO][PATCH] Fix missing IL symbol bug.


2008/8/26 Doug Kwan (éæå) <dougkwan@google.com>:
> Hi
>
>    This patch fixes a problem where the current IL symtab generation
> code only looks at the global out-decl state and misses the function
> out-decl states.  Tested on i686-unknown-linux-gnu.

Which decls should be on the symbol table but are only available on
function out-decl states? Do you have a C or C++ example?

> -Doug
>
> 2008-08-26  Doug Kwan  <dougkwan@google.com>
>
>        * (lto_decl_stream_e_t): New type.
>        * Makefile.in (lto-section-out.o): Add BITMAP_H.
>        * lto-section-out.c (bitmap.h): New include.
>        (write_symbol_vec): Renamed from produce_symtabl_1.  Also take a new
>        parameter SEEN to avoid duplicate symbols.
>        (write_symbols_of_kind): New.
>        (produce_symtab): Remove FUCNTIONS and VARIABLES parameters.
>        Now also look at out-decl states of functions for symbols.
>

Thanks,
-- 
Rafael Avila de Espindola

Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047

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