The attached test generates the following output:

i=-803365344
i=1

Both __builtin_frexpl and std::frexp(long double) give the above incorrect 
output.

However, ::frexpl works as expected.

-- 
           Summary: __builtin_frexpl and std::frexp(long double) broken
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jlquinn at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: powerpc-ibm-aix5.2.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19115

Reply via email to