http://sourceware.org/bugzilla/show_bug.cgi?id=12380
H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hjl.tools at gmail dot com --- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2011-01-09 17:04:44 UTC --- This works for me: --- diff --git a/ld/ldexp.c b/ld/ldexp.c index 3261884..812720c 100644 --- a/ld/ldexp.c +++ b/ld/ldexp.c @@ -723,8 +723,13 @@ exp_fold_tree_1 (etree_type *tree) case etree_assert: exp_fold_tree_1 (tree->assert_s.child); - if (expld.phase == lang_final_phase_enum && !expld.result.value) - einfo ("%X%P: %s\n", tree->assert_s.message); + if (expld.phase == lang_final_phase_enum + && !expld.result.value + && tree->assert_s.message) + { + einfo ("%X%P: %s\n", tree->assert_s.message); + tree->assert_s.message = NULL; + } break; case etree_unary: --- -- 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