On Fedora 14/x86-64, I got
FAIL: debug_msg.sh (exit: 1)
Did not find expected error in debug_msg.err:
Created attachment 5296 [details]
Fix the debug_msg.sh test.
I can reproduce this by switching from Ubuntu Lucid's native gcc-4.4.3 to gcc-4.6-svn, probably because they optimize different instructions into the front of Ordering::operator(). One fix is to add a comment just before that function, so that all its line numbers are two digits, which will cause detect_odr_violations() to sort a consistent line into the first place, regardless of gcc optimizes it.
Here's a patch that passes with both gcc-4.4.3 and gcc-4.6-svn.
Module name: src
Changes by: firstname.lastname@example.org 2011-03-11 21:42:12
gold : ChangeLog
gold/testsuite : debug_msg.sh odr_violation2.cc
* testsuite/odr_violation2.cc: Add comment to make all error line
numbers double digits.
* testsuite/debug_msg.sh: Adjust expected errors.
Should be fixed now.