[project @ 2002-09-23 10:44:07 by simonmar]
authorsimonmar <unknown>
Mon, 23 Sep 2002 10:44:07 +0000 (10:44 +0000)
committersimonmar <unknown>
Mon, 23 Sep 2002 10:44:07 +0000 (10:44 +0000)
Don't throw away .size and .type directives.  This lets us profile
with cachegrind and get meaningful results from vg_annotate (*very*
useful).

ghc/driver/mangler/ghc-asm.lprl

index 9ed28e5..6ff483f 100644 (file)
@@ -188,8 +188,8 @@ sub init_TARGET_STUFF {
     $T_X86_PRE_LLBL        = '.L';
     $T_X86_BADJMP   = '^\tjmp\s+[^\.\*]';
 
-    $T_MOVE_DIRVS   = '^(\s*(\.(p2)?align\s+\d+(,\s*0x90)?|\.globl\s+\S+|\.text|\.data|\.section\s+.*|\.type\s+.*|\.Lfe.*\n\s*\.size\s+.*|\.size\s+.*|\.ident.*)\n)';
-    $T_COPY_DIRVS   = '\.(globl)';
+    $T_MOVE_DIRVS   = '^(\s*(\.(p2)?align\s+\d+(,\s*0x90)?|\.globl\s+\S+|\.text|\.data|\.section\s+.*|\.type\s+.*|\.ident.*)\n)';
+    $T_COPY_DIRVS   = '^\s*\.(globl|type)';
 
     if ( $TargetPlatform =~ /freebsd|netbsd/ ) {
         $T_hsc_cc_PAT   = '\.ascii.*\)(hsc|cc) (.*)\\\\11"\n\t\.ascii\s+"(.*)\\\\0"';