gcc-plugins: Use dynamic initializers
authorKees Cook <keescook@chromium.org>
Tue, 6 Feb 2018 01:27:46 +0000 (17:27 -0800)
committerKees Cook <keescook@chromium.org>
Tue, 6 Feb 2018 01:27:46 +0000 (17:27 -0800)
commitb86729109c5fd0a480300f40608aac68764b5adf
tree0db6d7a68f0c223652413c0dc3132aa8d8ad418b
parent80d172431696482d9acd8d2c4ea78fed8956e2a1
gcc-plugins: Use dynamic initializers

GCC 8 changed the order of some fields and is very picky about ordering
in static initializers, so instead just move to dynamic initializers,
and drop the redundant already-zero field assignments.

Suggested-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>
Signed-off-by: Kees Cook <keescook@chromium.org>
scripts/gcc-plugins/latent_entropy_plugin.c
scripts/gcc-plugins/randomize_layout_plugin.c
scripts/gcc-plugins/structleak_plugin.c