public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/17721] New: __restrict defined as /* Ignore */ even in c11
@ 2014-12-17 15:15 dwight.guth at runtimeverification dot com
  0 siblings, 0 replies; only message in thread
From: dwight.guth at runtimeverification dot com @ 2014-12-17 15:15 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-12-17 15:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-17 15:15 [Bug libc/17721] New: __restrict defined as /* Ignore */ even in c11 dwight.guth at runtimeverification dot com

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).