[project @ 2005-01-17 16:46:58 by simonmar]
authorsimonmar <unknown>
Mon, 17 Jan 2005 16:46:58 +0000 (16:46 +0000)
committersimonmar <unknown>
Mon, 17 Jan 2005 16:46:58 +0000 (16:46 +0000)
sparc-.*linux: slight modification to rev. 1.107, the whitespace
before .section should be \s+, not \t.  Fixes problems with even more
recent gcc versions on sparc64.

ghc/driver/mangler/ghc-asm.lprl

index e868f33..886ada8 100644 (file)
@@ -405,7 +405,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|\.seg|\.stab.*|\t?\.section.*|\s+\.type.*|\s+\.size.*)\n)';
+    $T_MOVE_DIRVS   = '^((\s+\.align\s+\d+|\s+\.proc\s+\d+|\s+\.global\s+\S+|\.text|\.data|\.seg|\.stab.*|\s+?\.section.*|\s+\.type.*|\s+\.size.*)\n)';
     $T_COPY_DIRVS   = '\.(global|globl|proc|stab)';
 
     $T_DOT_WORD     = '\.(long|word|nword|xword|byte|half|short|skip|uahalf|uaword)';