http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61065
Bug ID: 61065 Summary: [4.9/4.10 Regresion] invalid args to -fsanitize should be an error not a warning Product: gcc Version: 4.8.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: driver Assignee: unassigned at gcc dot gnu.org Reporter: doko at gcc dot gnu.org [forwarded from https://bugs.debian.org/745105] With gcc-4.8 this works because -fsanitize=address works in 4.8: > gcc-4.8 -fsanitize=address test.c -o /dev/null and this fails and exits with non-zero because -fsanitize=integer is not supported in 4.8: > gcc-4.8 -fsanitize=integer test.c -o /dev/null gcc-4.8: error: unrecognized command line option ‘-fsanitize=integer’ > echo $? 1 Now for 4.9: > gcc-4.9 -fsanitize=integer test.c -o /dev/null gcc-4.9: warning: unrecognized argument to -fsanitize= option: ‘integer’ cc1: warning: unrecognized argument to -fsanitize= option: ‘integer’ > echo $? 0 This should exit with non-zero so that support for this flag can correctly be detected in things line autoconf generated configure scripts.