This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [LTO][PATCH] Fix missing IL symbol bug.
- From: "Rafael Espindola" <espindola at google dot com>
- To: "Doug Kwan (éæå)" <dougkwan at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 26 Aug 2008 11:03:09 +0100
- Subject: Re: [LTO][PATCH] Fix missing IL symbol bug.
- References: <498552560808260105n5376d38xa03031a396102053@mail.gmail.com>
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