From f8609b6de4f21f1d1c433160dc0cd9adaec95f34 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 14 Jan 2011 12:37:16 +0000 Subject: * ldmain.c (main): Flush stdout before and stderr after printing message. * ldmisc.c (einfo): Similarly. * plugin.c (message): Likewise. * emultempl/ppc64elf.em: Likewise. * emultempl/xtensaelf.em: Likewise. * emulparams/elf32mcore.sh: Use einfo rather than printf. * emultempl/beos.em: Likewise. * emultempl/pe.em: Likewise. * emultempl/pep.em: Likewise. --- ld/plugin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ld/plugin.c') diff --git a/ld/plugin.c b/ld/plugin.c index 10314a4d48..05379b8e61 100644 --- a/ld/plugin.c +++ b/ld/plugin.c @@ -1,5 +1,5 @@ /* Plugin control for the GNU linker. - Copyright 2010 Free Software Foundation, Inc. + Copyright 2010, 2011 Free Software Foundation, Inc. This file is part of the GNU Binutils. @@ -596,7 +596,9 @@ message (int level, const char *format, ...) char *newfmt = ACONCAT ((level == LDPL_FATAL ? "%P%F: " : "%P%X: ", format, "\n", NULL)); + fflush (stdout); vfinfo (stderr, newfmt, args, TRUE); + fflush (stderr); } break; } -- cgit v1.2.1