diff options
author | Patrick Georgi <pgeorgi@google.com> | 2019-05-15 21:39:57 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-11-18 19:19:24 +0000 |
commit | 4100c2a6e3d214dc679eb359de959de08b8d96f8 (patch) | |
tree | 71e63652d6e8e7e198798f57f8cc7a35538ae933 /src/lib/gpio.c | |
parent | 556cc26337bc3b36b20f139b5627de441eba88ef (diff) |
build system: Add various compiler flags that enable warnings on UB
Some types of Undefined Behavior can be determined statically at compile
time and gcc now has a set of flags that make it emit warnings in that
case instead of doing the __builtin_trap() / optimize / UD2-opcode dance
that silently breaks the resulting binary.
BUG=chromium:958270
BRANCH=none
TEST=abuild passes (probably not)
Change-Id: I3aa5ca00c9838cc7517160069310a1ef85372027
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32814
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/lib/gpio.c')
0 files changed, 0 insertions, 0 deletions