http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51796
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-09 23:24:16 UTC --- Created attachment 26288 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26288 gcc47-pr51796.patch Ah, REG_UNUSED might be still in next_note chain, not processed yet by distribute_notes. Completely (not even compile time) tested patch.