This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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 math/13741] New: Compilation fail with g++ 3.3.6 with option -ffast-math due to undefined macros __extern_always_inline


http://sourceware.org/bugzilla/show_bug.cgi?id=13741

             Bug #: 13741
           Summary: Compilation fail with g++ 3.3.6 with option
                    -ffast-math due to undefined macros
                    __extern_always_inline
           Product: glibc
           Version: 2.15
            Status: NEW
          Severity: minor
          Priority: P2
         Component: math
        AssignedTo: unassigned@sourceware.org
        ReportedBy: uleysky@gmail.com
                CC: aj@suse.de
    Classification: Unclassified


Very simple testcase test.cpp
#include <math.h>
int main() { return 0; }

g++-3.3.6 -o t -ffast-math test.cpp
In file included from /usr/include/math.h:424,
                 from test.cpp:1:
/usr/include/bits/math-finite.h:177: error: syntax error before `double'
/usr/include/bits/math-finite.h:186: error: syntax error before `float'
/usr/include/bits/math-finite.h:196: error: syntax error before `long'
/usr/include/bits/math-finite.h:210: error: syntax error before `double'
/usr/include/bits/math-finite.h:219: error: syntax error before `float'
/usr/include/bits/math-finite.h:229: error: syntax error before `long'
/usr/include/bits/math-finite.h:307: error: syntax error before `double'
/usr/include/bits/math-finite.h:310: error: `__d' was not declared in this 
   scope
/usr/include/bits/math-finite.h:310: error: `__local_signgam' was not declared 
   in this scope
/usr/include/bits/math-finite.h:311: error: syntax error before `return'
/usr/include/bits/math-finite.h:314: error: syntax error before `float'
/usr/include/bits/math-finite.h:317: error: conflicting types for `float __res'
/usr/include/bits/math-finite.h:310: error: previous declaration as `double 
   __res'
/usr/include/bits/math-finite.h:317: error: `__d' was not declared in this 
   scope
/usr/include/bits/math-finite.h:317: error: `__local_signgam' was not declared 
   in this scope
/usr/include/bits/math-finite.h:318: error: syntax error before `return'
/usr/include/bits/math-finite.h:322: error: syntax error before `long'
/usr/include/bits/math-finite.h:325: error: conflicting types for `long double 
   __res'
/usr/include/bits/math-finite.h:317: error: previous declaration as `float 
   __res'
/usr/include/bits/math-finite.h:325: error: `__d' was not declared in this 
   scope
/usr/include/bits/math-finite.h:325: error: `__local_signgam' was not declared 
   in this scope
/usr/include/bits/math-finite.h:326: error: syntax error before `return'

The root of problem is simple: in this case macros __extern_always_inline not
defined. Also, the problem is observed only with g++, not gcc.

-- 
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.


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