GCC 6.1 发布,新增功能特性
欢迎加入运维网交流群:263444886>>> »GCC 6.1 发布了,该版本较之前GCC5 新怎了大量的功能特性,默认采用C++14为新的标准,替代了之前的C++98。OpenMP 4.5规范将在本版本中被支持。此外,GCC 6.1 增强了对 C++17 的试验性支持;大大改进了诊断特性,包括位置,位置范围,拼写错误标识符建议,选项名字等等改进;新增了修复提示和一些警告提示。改进记录如下:
[*] UndefinedBehaviorSanitizer gained a new sanitization option,-fsanitize=bounds-strict, which enables strict checkingof array bounds. In particular, it enables-fsanitize=bounds as well as instrumentation offlexible array member-like arrays.
[*] Type-based alias analysis now disambiguates accesses to differentpointers. This improves precision of the alias oracle by about 20-30%on higher-level C++ programs. Programs doing invalid type punningof pointer types may now need -fno-strict-aliasingto work correctly.
[*] Alias analysis now correctly supports weakref andalias attributes. This makes it possible to accessboth a variable and its alias in one translation unit which is commonwith link-time optimization.
[*] Value range propagation now assumes that the this pointerof C++ member functions is non-null. This eliminatescommon null pointer checksbut also breaks some non-conforming code-bases (such as Qt-5, Chromium,KDevelop). As a temporary work-around-fno-delete-null-pointer-checks can be used. Wrongcode can be>-fsanitize=undefined.
完整发布说明,可以在这里查看。
页:
[1]