https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103804
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Martin Liska <mar...@gcc.gnu.org>: https://gcc.gnu.org/g:4960516df2f90e6ae16aa03c63c8bf2c702e6bc4 commit r12-6519-g4960516df2f90e6ae16aa03c63c8bf2c702e6bc4 Author: Martin Liska <mli...@suse.cz> Date: Wed Jan 12 12:48:33 2022 +0100 opts: do not do sanity check when an error is seen PR target/103804 gcc/c-family/ChangeLog: * c-attribs.c (handle_optimize_attribute): Do not call cl_optimization_compare if we seen an error.