This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/13202] New: -O2 -std=c99 doesn't work
- From: "hjl.tools at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Tue, 20 Sep 2011 04:03:26 +0000
- Subject: [Bug math/13202] New: -O2 -std=c99 doesn't work
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=13202
Bug #: 13202
Summary: -O2 -std=c99 doesn't work
Product: glibc
Version: 2.14
Status: NEW
Severity: normal
Priority: P2
Component: math
AssignedTo: aj@suse.de
ReportedBy: hjl.tools@gmail.com
Classification: Unclassified
Target: x86_64
[hjl@gnu-mic-2 tmp]$ cat x.c
#include <math.h>
long int
foo (float x)
{
return lrintf (x);
}
[hjl@gnu-mic-2 tmp]$ gcc -O2 -std=c99 x.c -c
In file included from /usr/include/math.h:416:0,
from x.c:1:
/usr/include/bits/mathinline.h: In function \u2018lrintf\u2019:
/usr/include/bits/mathinline.h:74:26: error: expected \u2018)\u2019 before
\u2018:\u2019 token
/usr/include/bits/mathinline.h: In function \u2018lrint\u2019:
/usr/include/bits/mathinline.h:83:26: error: expected \u2018)\u2019 before
\u2018:\u2019 token
/usr/include/bits/mathinline.h: In function \u2018llrintf\u2019:
/usr/include/bits/mathinline.h:92:26: error: expected \u2018)\u2019 before
\u2018:\u2019 token
/usr/include/bits/mathinline.h: In function \u2018llrint\u2019:
/usr/include/bits/mathinline.h:99:26: error: expected \u2018)\u2019 before
\u2018:\u2019 token
[hjl@gnu-mic-2 tmp]$
asm should be replaced by __asm.
--
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.