GCC6 Is Bringing More Helpful Warnings For Developers
While Clang has long been talked about as producing better warnings/errors and diagnostics than the GNU Compiler Collection, the GCC developers have been ramping up their error/warning reporting to be more helpful to developers in debugging compile-time issues. GCC 5 had brought a number of improvements on this front while GCC 6 will be even more helpful.
Red Hat developer Mark Wielaard has written a blog post covering many of the new warnings to GCC 6.
Among the possible new warnings is for code with duplicated logic, bit shifting with negative values, a bit shift overflow, a possible warning against dereferencing a null pointer, unused side effects, and other warning improvements.
GCC 6 will likely be released around late March with a plethora of improvements that have built up in this open-source compiler stack over the past year. We've been running many GCC 6 benchmarks and feature articles already while more will come in the lead-up to the official GCC 6.1 release.
Red Hat developer Mark Wielaard has written a blog post covering many of the new warnings to GCC 6.
Among the possible new warnings is for code with duplicated logic, bit shifting with negative values, a bit shift overflow, a possible warning against dereferencing a null pointer, unused side effects, and other warning improvements.
GCC 6 will likely be released around late March with a plethora of improvements that have built up in this open-source compiler stack over the past year. We've been running many GCC 6 benchmarks and feature articles already while more will come in the lead-up to the official GCC 6.1 release.
