diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2002-06-28 06:26:54 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2002-06-28 06:26:54 +0000 |
commit | d1a586888ec752c4a3e9aa322f2f8ebe1c6ff9c4 (patch) | |
tree | a7a80d0a2c536203d919b2a5eb3328aa0e029f54 /gcc/cpptrad.c | |
parent | 55c1c60d4fb961c1e895d53203b23c68f9744eb9 (diff) | |
download | gcc-d1a586888ec752c4a3e9aa322f2f8ebe1c6ff9c4.zip gcc-d1a586888ec752c4a3e9aa322f2f8ebe1c6ff9c4.tar.gz gcc-d1a586888ec752c4a3e9aa322f2f8ebe1c6ff9c4.tar.bz2 |
re PR preprocessor/7138 (gcc-3.2 failed to compile kernel)
PR preprocessor/7138
* cpplib.c (_cpp_handle_directive): Do traditional
preparation after setting state.angled_headers.
* cpptrad.c (scan_out_logical_line): Fix potential
quote bug.
From-SVN: r55055
Diffstat (limited to 'gcc/cpptrad.c')
-rw-r--r-- | gcc/cpptrad.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cpptrad.c b/gcc/cpptrad.c index 4d07d52..a72237b8 100644 --- a/gcc/cpptrad.c +++ b/gcc/cpptrad.c @@ -435,12 +435,13 @@ scan_out_logical_line (pfile, macro) const uchar *cur; uchar *out; struct fun_macro fmacro; - unsigned int c, paren_depth = 0, quote = 0; + unsigned int c, paren_depth = 0, quote; enum ls lex_state = ls_none; fmacro.buff = NULL; start_logical_line: + quote = 0; CUR (pfile->context) = pfile->buffer->cur; RLIMIT (pfile->context) = pfile->buffer->rlimit; pfile->out.cur = pfile->out.base; @@ -502,7 +503,7 @@ scan_out_logical_line (pfile, macro) quote = '>'; break; case '>': - if (pfile->state.angled_headers && c == quote) + if (c == quote) { pfile->state.angled_headers = false; quote = 0; |