mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-16 03:00:28 +08:00
cpptrad.c (skip_whitespace): Pass pointer to prior char.
* cpptrad.c (skip_whitespace): Pass pointer to prior char. testsuite: * gcc.dg/cpp/trad/escaped-nl.c: New test. From-SVN: r55135
This commit is contained in:
parent
590e1987d2
commit
e34cabb3b7
@ -1,3 +1,7 @@
|
||||
2002-07-01 Neil Booth <neil@daikokuya.co.uk>
|
||||
|
||||
* cpptrad.c (skip_whitespace): Pass pointer to prior char.
|
||||
|
||||
2002-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
|
||||
|
@ -284,7 +284,7 @@ skip_whitespace (pfile, cur, skip_comments)
|
||||
out--;
|
||||
if (c == '\\' && is_vspace (*cur))
|
||||
{
|
||||
cur = skip_escaped_newlines (pfile, cur);
|
||||
cur = skip_escaped_newlines (pfile, cur - 1);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,7 @@
|
||||
2002-07-01 Neil Booth <neil@daikokuya.co.uk>
|
||||
|
||||
* gcc.dg/cpp/trad/escaped-nl.c: New test.
|
||||
|
||||
2002-06-30 Devang Patel <dpatel@apple.com>
|
||||
|
||||
* objc.dg/fsyntax-only.m: New test.
|
||||
|
10
gcc/testsuite/gcc.dg/cpp/trad/escaped-nl.c
Normal file
10
gcc/testsuite/gcc.dg/cpp/trad/escaped-nl.c
Normal file
@ -0,0 +1,10 @@
|
||||
/* Test escaped newlines at start of macro definition are properly
|
||||
skipped (buglet in skip_whitespace () in cpptrad.c). */
|
||||
|
||||
/* { dg-do preprocess } */
|
||||
|
||||
#define NUM \
|
||||
100
|
||||
#if NUM != 100
|
||||
# error NUM not defined properly /* { dg-bogus "error" } */
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user