A preprocessor should Interpret an input line "# NUM FILENAME" as "#line NUM FILENAME"
commit5e3e32147473504c01125cea16f8d047c8e63766
authorseyko <seyko2@gmail.com>
Tue, 3 Mar 2015 11:06:05 +0000 (3 14:06 +0300)
committerseyko <seyko2@gmail.com>
Tue, 3 Mar 2015 11:06:05 +0000 (3 14:06 +0300)
tree48233fd4c40ad1cda48567e02ae68d720e538d6d
parent1706d2254b168309b2c38985750b6d00ad254ef3
A preprocessor should Interpret an input line "# NUM FILENAME" as "#line NUM FILENAME"

A cpp from gcc do this.
A test case:
     tcc -E tccasm.c -o tccasm.i
     tcc -E tccasm.i -o tccasm.ii
After a patch the line numbers in tccasm.ii are the same
as in tccasm.i
tccpp.c