From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16201 invoked by alias); 24 Feb 2012 09:40:37 -0000 Received: (qmail 16192 invoked by uid 22791); 24 Feb 2012 09:40:36 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 24 Feb 2012 09:40:25 +0000 From: "uleysky at gmail dot com" 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: math X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: uleysky at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2012-02/txt/msg00440.txt.bz2 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 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.