This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: PR lto/50568: [4.7 Regression] Massive LTO failures
- From: Andi Kleen <andi at firstfloor dot org>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 29 Sep 2011 18:14:16 -0700
- Subject: Re: PATCH: PR lto/50568: [4.7 Regression] Massive LTO failures
- References: <20110930005702.GA15754@intel.com>
"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