[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/12557] gcc & Firefox fail to build with -flto and --as-needed LD
From: |
rguenth at gcc dot gnu.org |
Subject: |
[Bug ld/12557] gcc & Firefox fail to build with -flto and --as-needed LDFLAGS |
Date: |
Fri, 02 Sep 2011 10:36:33 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=12557
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at gcc dot gnu.org
--- Comment #31 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-09-02
10:36:33 UTC ---
Simple testcase
double x;
int main()
{
return x*x*x*x;
}
> gcc-4.6 -o t t.o -O -ffast-math -flto
> gcc-4.6 -o t t.o -flto
/tmp/ccIqK5i6.ltrans0.ltrans.o: In function `main':
ccIqK5i6.ltrans0.o:(.text+0x19): undefined reference to `pow'
collect2: ld returned 1 exit status
> gcc-4.6 -o t t.o -flto -lm
> gcc-4.6 -o t t.o -flto -Wl,--as-needed -lm
which works for me with the 2.21.1 release.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
- [Bug ld/12557] gcc & Firefox fail to build with -flto and --as-needed LDFLAGS,
rguenth at gcc dot gnu.org <=