cvs commit: fptools/ghc/utils/unlit unlit.c fptools/ghc/compiler/parser
Lex.lhs
Simon Marlow
simonmar@glass.cse.ogi.edu
Tue, 22 Jan 2002 05:09:37 -0800
simonmar 2002/01/22 05:09:37 PST
Modified files:
ghc/utils/unlit unlit.c
ghc/compiler/parser Lex.lhs
Log:
Fix for a change in CPP's behaviour in gcc 2.96 relative to 2.95.
Unlit used to inject '# <line> <file>' at the beginning of the output
file, but in gcc 2.96 this is ignored. Instead we have to inject
'#line <line> <file>', which in turn means that GHC's lexer has to
understand this kind of pragma in addition to the plain '#' form, in
the case when we aren't running CPP after unlitting.
Revision Changes Path
1.7 +2 -2 fptools/ghc/utils/unlit/unlit.c
1.67 +9 -3 fptools/ghc/compiler/parser/Lex.lhs