On Mon, Jan 12, 2015 at 3:46 PM, H.J. Lu <hjl.to...@gmail.com> wrote: > On Mon, Jan 12, 2015 at 2:42 PM, H.J. Lu <hjl.to...@gmail.com> wrote: >> This libffi commit: >> >> 13e2d7b92557a9511a0414df82bf2df3edc55cba is the first bad commit >> commit 13e2d7b92557a9511a0414df82bf2df3edc55cba >> Author: Anthony Green <gr...@moxielogic.com> >> Date: Thu Jan 10 10:52:02 2013 -0500 >> >> Handle both 32 and 64-bit x86 builds regardless of target triple >> >> breaks x32. >> > > This patch passed "make check" in libffi on x32. I am testing > it in GCC now. > > GCC is configured as x86_64-unknown-linux-gnu with x32 > enabled. libffi should set TARGET to X86_64 if __x86_64__ > is defined.
It fixed GCC build. Anthony, can you apply it to libffi? Thanks. -- H.J.