public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "uleysky at gmail dot com" <sourceware-bugzilla@sourceware.org> To: glibc-bugs@sources.redhat.com Subject: [Bug math/13741] New: Compilation fail with g++ 3.3.6 with option -ffast-math due to undefined macros __extern_always_inline Date: Fri, 24 Feb 2012 09:40:00 -0000 [thread overview] Message-ID: <bug-13741-131@http.sourceware.org/bugzilla/> (raw) 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.
next reply other threads:[~2012-02-24 9:40 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-02-24 9:40 uleysky at gmail dot com [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-13741-131@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=glibc-bugs@sources.redhat.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).