projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6124396
)
[project @ 2004-09-15 02:47:03 by wolfgang]
author
wolfgang
<unknown>
Wed, 15 Sep 2004 02:47:03 +0000
(
02:47
+0000)
committer
wolfgang
<unknown>
Wed, 15 Sep 2004 02:47:03 +0000
(
02:47
+0000)
Accept '#pragma' lines in the cmm parser.
This is necessary because Apple's version of GNU cpp 3.3 leaves #pragma
lines in it's output, which cause the build to fail on Mac OS X with
GCC >= 3.3
ghc/compiler/cmm/CmmLex.x
patch
|
blob
|
history
diff --git
a/ghc/compiler/cmm/CmmLex.x
b/ghc/compiler/cmm/CmmLex.x
index
e1be71a
..
ff98508
100644
(file)
--- a/
ghc/compiler/cmm/CmmLex.x
+++ b/
ghc/compiler/cmm/CmmLex.x
@@
-61,6
+61,7
@@
$namechar = [$namebegin $digit]
cmm :-
$white_no_nl+ ;
+^\# pragma .* \n ; -- Apple GCC 3.3 CPP generates pragmas in its output
^\# (line)? { begin line_prag }