This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
egcs/gcc ChangeLog cppfiles.c cpphash.c cpplib ...
- To: gcc-cvs at gcc dot gnu dot org
- Subject: egcs/gcc ChangeLog cppfiles.c cpphash.c cpplib ...
- From: zack at gcc dot gnu dot org
- Date: 6 Feb 2000 08:24:23 -0000
CVSROOT: /cvs/gcc
Module name: egcs
Changes by: zack@sourceware.cygnus.com 00/02/06 00:24:23
Modified files:
gcc : ChangeLog cppfiles.c cpphash.c cpplib.c
Added files:
gcc/testsuite/gcc.dg: lineno-2.c strpaste.c trigraphs.c
Log message:
* cppfiles.c (read_and_prescan) [case SPECCASE_QUESTION]: Bump
input pointer before possibly branching off to the backslash
code.
* cpphash.c (macroexpand): Correctly delete \r escapes when
stringifying parameters.
* cpplib.c (copy_rest_of_line): Go directly to skip_block_comment
if we can; bail out early if we hit a line comment.
(handle_directive): Treat '# 123' in an .S file just like
'# <punctuation>'. Discard the shifted '#' if we hit '#\n'.
Return 1 for '# not_a_directive'.
(get_directive_token): Pop macro buffers here, so that
cpp_get_token can't sneakily move past a newline.
Add sanity checks.
(cpp_get_token): goto randomchar if handle_directive returns 0.