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-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to