GNU gcc commit:

29d5232... 	PR middle-end/56461 	* diagnostic.c (diagnostic_append_note): Save and restore old prefix.