Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Sep 2015 11:16:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-standards@FreeBSD.org
Subject:   [Bug 203066] _Thread_local detection is broken with GCC < 4.9
Message-ID:  <bug-203066-15-61Ehj8xuhQ@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-203066-15@https.bugs.freebsd.org/bugzilla/>
References:  <bug-203066-15@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203066

Ed Schouten <ed@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |Not A Bug
             Status|New                         |Closed

--- Comment #1 from Ed Schouten <ed@FreeBSD.org> ---
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-203066-15-61Ehj8xuhQ>