gcc compiler flags against Spectre unknown by clang
gcc uses different flags to harden the code against Spectre
mindirect-branch=
mfunction-return=
mindirect-branch-register
clang v6 introduced these compiler flags:
mretpoline
mretpoline-external-thunk
@@ -88,6 +88,9 @@ IGNORED_OPTIONS = [
'-mtraceback=',
'-mtext=',
'-misa=',
+ '-mfunction-return=',
+ '-mindirect-branch-register',
+ '-mindirect-branch=',
'-mfix-cortex-m3-ldrd$',
'-mmultiple$',
'-msahf$',
