[project @ 2001-01-04 10:48:46 by simonmar]
authorsimonmar <unknown>
Thu, 4 Jan 2001 10:48:46 +0000 (10:48 +0000)
committersimonmar <unknown>
Thu, 4 Jan 2001 10:48:46 +0000 (10:48 +0000)
Fix the test for epilogue junk, and change it into a warning.

ghc/driver/mangler/ghc-asm.lprl

index fa43ae9..44f4693 100644 (file)
@@ -758,11 +758,8 @@ sub mangle_asm {
                    print STDERR "$Pgm: unknown epilogue mangling? $TargetPlatform\n";
                }
 
-               # --- Can't test for residual epilogue junk reliably because
-               # --- there might be some directives left over that we're going
-               # --- to move to the next chunk (see below).
-               # die "Epilogue junk?: $e\n" if $e =~ /^\t[^\.\n]/
-               #    && $TargetPlatform !~ /^powerpc-/; #ToDo: remove test
+               print "WARNING: Epilogue junk?: $e\n" if $e =~ /^\t\s*[^\.\s\n]/
+                  && $TargetPlatform !~ /^powerpc-/; #ToDo: remove test
 
                # glue together what's left
                $c = $r . $e;