From owner-freebsd-standards@freebsd.org Sun Sep 13 11:16:26 2015 Return-Path: Delivered-To: freebsd-standards@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BA687A0199B for ; Sun, 13 Sep 2015 11:16:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A697F117E for ; Sun, 13 Sep 2015 11:16:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id t8DBGQeT056420 for ; Sun, 13 Sep 2015 11:16:26 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-standards@FreeBSD.org Subject: [Bug 203066] _Thread_local detection is broken with GCC < 4.9 Date: Sun, 13 Sep 2015 11:16:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ed@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-standards@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Sep 2015 11:16:26 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203066 Ed Schouten changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |Not A Bug Status|New |Closed --- Comment #1 from Ed Schouten --- Hi Raphael, Even though I agree that this isn't nice, I'm inclined to say that this is a "won't fix". What happens here is that you're instructing the compiler to build a source file in C11 mode, using an (outdated) compiler that does not implement C11. It is wrong for the compiler to set __STDC_VERSION__ to 201112L, even though it does not implement that version of the standard in the first place. Keep in mind that this is not some kind of esoteric feature of the standard we're using -- it's one of the core features introduced in C11. In other words, simply don't use GCC < 4.9 in combination with -std=gnu11. It's broken. That said, I don't feel about this too strongly. If someone else is willing to work on this, please reopen. :-) Thanks, Ed -- You are receiving this mail because: You are the assignee for the bug.