David Malcolm

David Malcolm's contributions

Featured image for: Value range propagation in GCC with Project Ranger.
Article

Prevent Trojan Source attacks with GCC 12

David Malcolm

Discover how Red Hat protects GCC 12 code from Trojan Source attacks. Learn how we defend our customers against this recent software vulnerability.

Featured image: Static analysis updates in GCC 11
Article

Static analysis updates in GCC 11

David Malcolm

Get an overview of fixes and enhancements to the -fanalyzer static analysis pass, currently being updated for security, state tracking, and more in GCC 11.

Article

Static analysis in GCC 10

David Malcolm

Discover the new -fanalyzer option coming to GCC 10 that provides a static analysis pass to identify problems at compile-time, rather than at runtime.

GNU C library
Article

Usability improvements in GCC 9

David Malcolm

The upcoming GCC 9 release will have improved diagnostic messages, simpler C++ errors, more accurate error location reporting, and optional machine readable output for developer tools.

GNU C library
Article

Usability improvements in GCC 8

David Malcolm

This article summarizes work that was done to make GCC 8 more usable by providing easier to understand warning and error messages. Many of these improvements will help you quickly recognize those common silly mistakes.

GNU C library
Article

Testing... Testing... GCC

David Malcolm

The next release of the GNU Compiler Collection, GCC 7, is fast approaching, so in this post, I'm going to talk about work I've done to make GCC more reliable GCC has a large test suite: when I test a patch, roughly 330,000 tests are run, covering various aspects of the compiler, such as: handling valid and invalid syntax in the front-ends verifying that optimizations passes are run verifying that the resulting code runs correctly verifying that the debugger can...

            Article
       Thumbnail
Article

GCC 6: -Wmisleading-indentation vs "goto fail;"

David Malcolm

I work at Red Hat on GCC, the GNU Compiler Collection. The next major release of GCC, GCC 6, is just around the corner, so I thought I'd post about a new compiler warning I've contributed to it: -Wmisleading-indentation. One of the more common "gotchas" in C and C++ programming relates to missing braces. For example, in the following: if (some_condition ()) do_foo (); do_bar (); the "do_bar ();" looks like it's guarded by the conditional, but it's actually outside...