.RHEL 10 introduces GCC 14.2
RHEL 10 is distributed with the GNU Compiler Collection (GCC) version 14.2.
Notable changes since GCC 13 include:
* Optimization and diagnostic improvements
* A new `-fhardened` umbrella option, which enables a set of hardening flags
* A new `-fharden-control-flow-redundancy` option to detect attacks that transfer control into the middle of functions
* A new `strub` type attribute to control stack scrubbing properties of functions and variables
* A new `-finline-stringops` option to force inline expansion of certain `mem*` functions
* Support for new OpenMP 5.1, 5.2, and 6.0 features
* Several new C23 features
* Multiple new pass:[C++23] and pass:[C++26] features
* Several resolved C++ defect reports
* New and improved experimental support for pass:[C++20], pass:[C++23], and pass:[C++26] in the pass:[C++] library
* Support for new CPUs in the 64-bit ARM architecture
* Multiple new instruction set architecture (ISA) extensions in the 64-bit Intel architecture, for example: AVX10.1, AVX-VNNI-INT16, SHA512, and SM4
* New warnings in the GCC's static analyzer
* Certain warnings changed to errors; for details, see link:
https://gcc.gnu.org/gcc-14/porting_to.html#warnings-as-errors[Porting to GCC 14]
* Various bug fixes
For more information about changes in GCC 14, see the link:
https://gcc.gnu.org/gcc-14/changes.html[upstream GCC release notes].