[lto][patch] Output references to variables used only in initializers of static variables
Rafael Espindola
espindola@google.com
Fri Jan 8 22:00:00 GMT 2010
I missed the case of initializers of static variables in my previous
patch. The attached patch fixes it. For example, in
extern int flag_exceptions;
static int *foo = &flag_exceptions
we were not producing an undefined reference to flag_exceptions.
OK if bootstraps and tests are ok?
2010-01-08 Rafael Avila de Espindola <espindola@google.com>
* lto-streamer-out.c (output_unreferenced_globals): Output static
variables.
2010-01-08 Rafael Avila de Espindola <espindola@google.com>
* gcc.dg/lto/20100108_0.c: New.
Cheers,
--
Rafael Ávila de Espíndola
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix.patch
Type: text/x-diff
Size: 1435 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100108/74d3f3dd/attachment.bin>
More information about the Gcc-patches
mailing list