[LLVMbugs] [Bug 8943] New: pow is transformed to exp2 in -std=gnu89 mode

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jan 9 15:50:25 PST 2011


http://llvm.org/bugs/show_bug.cgi?id=8943

           Summary: pow is transformed to exp2 in -std=gnu89 mode
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: amine.khaldi at reactos.org
                CC: llvmbugs at cs.uiuc.edu


I got undefined reference to `exp2' from this line of code:

r->f = a->f * pow(2., n.f);

exp2 doesn't seem to be in the C89 standard, so this transformation is a bug
most likely.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list