https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70255
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Richard Biener from comment #3) > We'd likely want to warn in merge_decls for this case. "this case" == all optimization attributes applied via newdecl to olddecl with DECL_SAVED_TREE (or DECL_INITIAL?) set.