I have a simple test case. Compiling the attached program without -flto
works:

gcc -o test-flto test-flto.c -lm

But with -flto an error is reported:

gcc -flto -o test-flto test-flto.c -lm

This is with gcc 4.6.1-7ubuntu1 - OTOH the gcc 4.5 from Natty compiles
both successfully.

** Attachment added: "test-flto.c"
   
https://bugs.launchpad.net/ubuntu/+source/gcc-4.6/+bug/778292/+attachment/2292658/+files/test-flto.c

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/778292

Title:
  undefined reference to `pow' when building with -flto

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.6/+bug/778292/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to