[project @ 2005-03-03 10:37:57 by simonmar]
authorsimonmar <unknown>
Thu, 3 Mar 2005 10:37:57 +0000 (10:37 +0000)
committersimonmar <unknown>
Thu, 3 Mar 2005 10:37:57 +0000 (10:37 +0000)
Sparc: allow whitespace before .section directive.  Should fix
linking problems on sparc/solaris.

ghc/driver/mangler/ghc-asm.lprl

index 6e29279..3934416 100644 (file)
@@ -360,7 +360,7 @@ sub init_TARGET_STUFF {
     $T_CONST_LBL    = '^\.LLC(\d+):$'; # regexp for what such a lbl looks like
     $T_POST_LBL            = ':';
 
-    $T_MOVE_DIRVS   = '^((\s+\.align\s+\d+|\s+\.proc\s+\d+|\s+\.global\s+\S+|\.text|\.data|\.stab.*|\.section.*|\s+\.type.*|\s+\.size.*)\n)';
+    $T_MOVE_DIRVS   = '^((\s+\.align\s+\d+|\s+\.proc\s+\d+|\s+\.global\s+\S+|\.text|\.data|\.stab.*|\s*\.section.*|\s+\.type.*|\s+\.size.*)\n)';
     $T_COPY_DIRVS   = '\.(global|proc|stab)';
 
     $T_DOT_WORD            = '\.(long|word|byte|half|skip|uahalf|uaword)';