https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85777
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- That can be dealt in the Makefile rules, for sanitization use something like $(CC) $(CFLAGS) $(WARNOPTS) -S -o /dev/null $< $(CC) $(CFLAGS) $(SANITIZEOPTS) -c -o $@ $< 2>/dev/null or similar.