[project @ 2002-08-27 09:12:53 by simonmar]
authorsimonmar <unknown>
Tue, 27 Aug 2002 09:12:53 +0000 (09:12 +0000)
committersimonmar <unknown>
Tue, 27 Aug 2002 09:12:53 +0000 (09:12 +0000)
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).

ghc/driver/mangler/ghc-asm.lprl

index 1edd32f..a0c3921 100644 (file)
@@ -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