GCC 4.8 To Handle More C++11, Initial C++1y Support

Written by Michael Larabel in GNU on 17 October 2012 at 03:01 PM EDT. Add A Comment
GNU
GCC 4.8 is set to support more of the C++11 ISO standard and it also starts working on very early support for "C++1y", the next C++ standard that is still years away.

Besides supporting new hardware optimizations, potential Unified Parallel C support, a conversion to C++, and many other changes, GCC 4.8 improves its support for the C++11 ISO standard.

G++ in GCC 4.8 now supports the C++11 thread_local keyword. "G++ now implements the C++11 thread_local keyword; this differs from the GNU __thread keyword primarily in that it allows dynamic initialization and destruction semantics. Unfortunately, this support requires a run-time penalty for references to non-function-local thread_local variables even if they don't need dynamic initialization, so users may want to continue to use __thread for TLS variables with static initialization semantics. OpenMP threadprivate variables now also support dynamic initialization and destruction by the same mechanism."

Another C++11 feature for this GCC release due out in 2013 is support for the attribute syntax, alignment specifier, and inheriting constructors.

The early C++1y support is exposed via setting the -std=c++1y switch but right now the only proposed feature that is implemented is support for return type deduction in normal features. This next C++ standard isn't expected to be settled until 2017.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week