This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/17721] New: __restrict defined as /* Ignore */ even in c11
- From: "dwight.guth at runtimeverification dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 17 Dec 2014 15:15:16 +0000
- Subject: [Bug libc/17721] New: __restrict defined as /* Ignore */ even in c11
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=17721
Bug ID: 17721
Summary: __restrict defined as /* Ignore */ even in c11
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: dwight.guth at runtimeverification dot com
CC: drepper.fsp at gmail dot com
A number of functions in stdio.h and other places are declared in the C11
standard as taking parameters with the type qualifier "restrict". This works if
the __GNUC__ macro is defined with the appropriately recent version of GCC.
However, C11 also defines the restrict qualifier. But the __restrict macro used
by these header files does not take this into account. Therefore, for non-GCC
compilers using the GLIBC header files, they incorrectly do not allow the
restrict qualifier on these functions, causing them to be typed wrongly.
cf misc/sys/cdefs.h line 363.
Note this also seems to be true of inline (line 72).
--
You are receiving this mail because:
You are on the CC list for the bug.