David Malcolm

Results 57 issues of David Malcolm

Inspired by Vladimir's talk at LPC, this is a proof-of-concept of populating a libgccjit context from a MIR module, and then compiling it with libgccjit. This could allow for libgccjit...

If I'm reading things correctly, https://github.com/regehr/itc-benchmarks/blob/master/01.w_Defects/free_null_pointer.c is a test that a verifier complains about a free of a NULL pointer. However, it's legal to call `free` on a NULL pointer;...

The "Constant Propagation" and "Constant Folding" sections each contain links to themselves; presumably they're meant to link to each other? Fixed in the following, I believe (though I messed up...

rustc has error codes to identify specific errors, with URLs documenting each error. In GCC 13 I've extended GCC's diagnostic subsystem so that a diagnostic can be associated with zero...

enhancement
GCC
diagnostic

For fun, I tried running gccrs with `-fanalyzer `; it seems to work; here's an example of detecting a double-free in `unsafe `code: https://godbolt.org/z/3PrKTP8bs ``` // This doesn't seem to...

Ideally we'd test for the matrix of all supported gcc versions vs all supported Python versions. (Help with this would be appreciated!)

gcc.EnumeralType seems to exist, but it is not documented.

Consider this plugin: {{{ import gcc def decl_finished(decl, *args, **kwargs): print "DECLARING %s -> %s" % (type(decl), decl.name) gcc.register_callback(gcc.PLUGIN_FINISH_DECL, decl_finished) }}} ... and this C source file: {{{ void somefunction(void)...