PATCH: PR lto/50568: [4.7 Regression] Massive LTO failures

Andi Kleen andi@firstfloor.org
Fri Sep 30 06:18:00 GMT 2011


"H.J. Lu" <hongjiu.lu@intel.com> writes:

> Hi,
>
> On 32bit hosts, like Linux/ia32, HOST_WIDE_INT is 64bit.  But lto and
> lto-plugin still uses 32bit int in symbol ID handling.  As the result,
> LTO is totally broken on Linux/ia32.  This patch switches symbol ID
> to HOST_WIDE_INT in lto.c and long long in lto-plugin.c.  Since
> symbol ID is generated by lto.c, long long >= HOST_WIDE_INT and
> lto-plugin.c only scans/prints symbol ID as numbers, it isn't a problem.
> Tested on Linux/ia32 and Linux/x86-64.  OK for trunk?

Thanks for fixing. Looks good to me.
-Andi

-- 
ak@linux.intel.com -- Speaking for myself only



More information about the Gcc-patches mailing list