cpptrad.c (scan_out_logical_line): Check recursing only when we know we have a macro...
authorNeil Booth <neil@daikokuya.co.uk>
Mon, 24 Jun 2002 05:46:51 +0000 (05:46 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Mon, 24 Jun 2002 05:46:51 +0000 (05:46 +0000)
commit2c088b53f9633f073f02656eba0033c68ab65f31
treefcd033733bfffcb7d0c08d9fe7bd14f21ee3f9c5
parent66443ad2fda37477c32f6230d9d784717e167b9a
cpptrad.c (scan_out_logical_line): Check recursing only when we know we have a macro invocation in the...

* cpptrad.c (scan_out_logical_line): Check recursing only when
we know we have a macro invocation in the function-like case.
Only call _cpp_handle_directive if we know we have a good
directive, or we want to reject a bad directive.
testsuite:
* gcc.dg/cpp/trad/argcout.c, gcc.dg/cpp/trad/assembler.S,
gcc.dg/cpp/trad/argcout.c, gcc.dg/cpp/trad/funlike-4.c,
gcc.dg/cpp/trad/null-drctv.c, gcc.dg/cpp/trad/recurse-1.c,
gcc.dg/cpp/trad/recurse-2.c, gcc.dg/cpp/trad/recurse-3.c:
New tests.
* gcc.dg/cpp/trad/directive.c: Update.

From-SVN: r54942
gcc/ChangeLog
gcc/cpptrad.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/trad/argcount.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/trad/assembler.S [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/trad/directive.c
gcc/testsuite/gcc.dg/cpp/trad/funlike-4.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/trad/null-drctv.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/trad/recurse-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/trad/recurse-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/trad/recurse-3.c [new file with mode: 0644]