This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/61969] [4.8/4.9/4.10 Regression] wrong code by LTO on i?86-linux-gnu (affecting trunk, 4.9.x, and 4.8.x)
- From: "su at cs dot ucdavis.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 01 Aug 2014 06:33:56 +0000
- Subject: [Bug lto/61969] [4.8/4.9/4.10 Regression] wrong code by LTO on i?86-linux-gnu (affecting trunk, 4.9.x, and 4.8.x)
- Auto-submitted: auto-generated
- References: <bug-61969-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61969
--- Comment #2 from Zhendong Su <su at cs dot ucdavis.edu> ---
> You mean in 32bit mode.
Richard, yes, I meant 32-bit mode.
> I can't reproduce it with trunk or 4.9 but only
> with 4.8:
>
> rguenther@murzim:/tmp> ./compile.sh gcc-4.8 32 1
> rguenther@murzim:/tmp> ./t
> 2052
>
> maybe it's sensitive to the linker used? it works with both GNU ld and gold
> for me with 4.9 and trunk.
I used the GNU gold linker:
$ ld -v
GNU gold (GNU Binutils for Ubuntu 2.22) 1.11
$