[project @ 2002-09-10 16:07:48 by simonmar]
authorsimonmar <unknown>
Tue, 10 Sep 2002 16:07:48 +0000 (16:07 +0000)
committersimonmar <unknown>
Tue, 10 Sep 2002 16:07:48 +0000 (16:07 +0000)
Tidy up error message for "funny global things"

ghc/driver/mangler/ghc-asm.lprl

index f238d91..9ed28e5 100644 (file)
@@ -613,7 +613,8 @@ sub mangle_asm {
                   || ! /^L\$\d+$/ ) ) {
            local($thing);
            chop($thing = $_);
-           print STDERR "Warning: retaining unknown function `$_' in output from C compiler"
+           $thing =~ s/:$//;
+           print STDERR "Warning: retaining unknown function \`$thing' in output from C compiler\n"
                unless # $KNOWN_FUNNY_THING{$thing}
                       /^${T_US}stg_.*${T_POST_LBL}$/o          # RTS internals
                    || /^${T_US}__stg_.*${T_POST_LBL}$/o        # more RTS internals