public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/13741] New: Compilation fail with g++ 3.3.6 with option -ffast-math due to undefined macros __extern_always_inline
@ 2012-02-24  9:40 uleysky at gmail dot com
  2012-02-24  9:44 ` [Bug math/13741] " polacek at redhat dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: uleysky at gmail dot com @ 2012-02-24  9:40 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-06-26 15:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-24  9:40 [Bug math/13741] New: Compilation fail with g++ 3.3.6 with option -ffast-math due to undefined macros __extern_always_inline uleysky at gmail dot com
2012-02-24  9:44 ` [Bug math/13741] " polacek at redhat dot com
2012-02-24  9:53 ` jakub at redhat dot com
2012-03-02  1:04 ` jsm28 at gcc dot gnu.org
2012-08-31 10:47 ` polacek at redhat dot com
2012-09-26 11:02 ` polacek at redhat dot com
2014-06-26 15:16 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).