From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4249 invoked by alias); 17 Dec 2014 15:15:22 -0000 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 Received: (qmail 4202 invoked by uid 48); 17 Dec 2014 15:15:17 -0000 From: "dwight.guth at runtimeverification dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/17721] New: __restrict defined as /* Ignore */ even in c11 Date: Wed, 17 Dec 2014 15:15:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dwight.guth at runtimeverification 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-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-12/txt/msg00141.txt.bz2 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.