From: simonmar Date: Tue, 27 Aug 2002 09:12:53 +0000 (+0000) Subject: [project @ 2002-08-27 09:12:53 by simonmar] X-Git-Tag: Approx_11550_changesets_converted~1752 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=b669d6d93e1107dc6717162fb031fe5e15f4d8ba;p=ghc-hetmet.git [project @ 2002-08-27 09:12:53 by simonmar] Replace "Funny global thing" with a better error message, as suggested by Alastair Reid. The message is: Warning: retaining unknown function `$_' in output from C compiler ("unknown function" is a bit vague, but I couldn't come up with an alternative that wasn't misleading). --- diff --git a/ghc/driver/mangler/ghc-asm.lprl b/ghc/driver/mangler/ghc-asm.lprl index 1edd32f..a0c3921 100644 --- a/ghc/driver/mangler/ghc-asm.lprl +++ b/ghc/driver/mangler/ghc-asm.lprl @@ -613,7 +613,7 @@ sub mangle_asm { || ! /^L\$\d+$/ ) ) { local($thing); chop($thing = $_); - print STDERR "Funny global thing?: $_" + print STDERR "Warning: retaining unknown function `$_' in output from C compiler" unless # $KNOWN_FUNNY_THING{$thing} /^${T_US}stg_.*${T_POST_LBL}$/o # RTS internals || /^${T_US}__stg_.*${T_POST_LBL}$/o # more RTS internals