Description of problem: Any code using math.h fails to compile if -std=c99 is specified in CFLAGS at -O1 or higher. Version-Release number of selected component (if applicable): glibc-headers-2.14.90-9.x86_64 How reproducible: Always. Steps to Reproduce: 1. cat > test.c #include <math.h> float foo(float f) { return lrintf(f); } int main(void){ return 0; } 2. gcc -std=c99 -O1 -o test.o -c test.c Actual results: In file included from /usr/include/math.h:416:0, from test.c:1: /usr/include/bits/mathinline.h: In function 'lrintf': /usr/include/bits/mathinline.h:76:26: error: expected ')' before ':' token /usr/include/bits/mathinline.h: In function 'lrint': /usr/include/bits/mathinline.h:85:26: error: expected ')' before ':' token /usr/include/bits/mathinline.h: In function 'llrintf': /usr/include/bits/mathinline.h:94:26: error: expected ')' before ':' token /usr/include/bits/mathinline.h: In function 'llrint': /usr/include/bits/mathinline.h:101:26: error: expected ')' before ':' token Expected results: Code using math.h should compile fine even if using -std=c99.
*** This bug has been marked as a duplicate of bug 740235 ***