Re: [Bug lto/44812] m32 lto produces non-relocatable subtraction expression errors

2010-09-01 Thread Jan Hubicka
 Original -m32 lto testsuite failures due to non-relocatable subtraction
 expression errors were made latent by the commit...

Hmm, this does not make much sense. What changed?
Honza


Re: [Bug lto/44812] m32 lto produces non-relocatable subtraction expression errors

2010-08-24 Thread Jan Hubicka
Hmm, actually the symbol is not changed, since it is externally visible symbol.
I guess the problem would be that the symbol is used by 2 units, so both of
them gets the declaration, but both of them gets the declaration with
initializer (not extern).  To avoid duplicate definitions, varpool.c is testing
in_other_partition and prevents calling assemble_variable on them. This works
just fine on ELF since extern vars don't need to be announced.  Here we
apparently need to get it assembled, but it is not getting via
assemble_external.

Rebuilding the decl to DECL_EXTERN is probably possible, but somewhat hackish.

Honza