This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/19602] New: -mno-80387 should define __NO_MATH_INLINES


This testcase will fail with '-O2 -ffast-math -mno-80387':

#include <math.h>
double test(double x) {
        return sin(x);
}

sin.c: In function 'test':
/usr/include/bits/mathinline.h:456: error: impossible constraint in 'asm'

Adding -D__NO_MATH_INLINES to compile flags fixes this problem.

-- 
           Summary: -mno-80387 should define __NO_MATH_INLINES
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: uros at kss-loka dot si
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i386-pc-linux-gnu
  GCC host triplet: i386-pc-linux-gnu
GCC target triplet: i386-pc-linux-gnu


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]