http://sourceware.org/bugzilla/show_bug.cgi?id=12572

--- Comment #1 from Jeffrey Yasskin <jyasskin at gmail dot com> 2011-03-11 
19:18:55 UTC ---
Created attachment 5296
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5296
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.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to