mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-09 07:06:46 +08:00
* c-lex.c [! NO_IMPLICIT_EXTERN_C] (cb_enter_file): Check
in_system_header and flags[1] before dereferencing flags[2]. From-SVN: r37361
This commit is contained in:
parent
881a89697e
commit
5925798060
@ -1,3 +1,8 @@
|
||||
2000-11-09 Hans-Peter Nilsson <hp@axis.com>
|
||||
|
||||
* c-lex.c [! NO_IMPLICIT_EXTERN_C] (cb_enter_file): Check
|
||||
in_system_header and flags[1] before dereferencing flags[2].
|
||||
|
||||
2000-11-09 Matthew Hiller <hiller@redhat.com>
|
||||
|
||||
* reload1.c (reload_combine): Fixed calculation of
|
||||
|
@ -714,7 +714,7 @@ cb_enter_file (pfile)
|
||||
#ifndef NO_IMPLICIT_EXTERN_C
|
||||
if (c_header_level)
|
||||
++c_header_level;
|
||||
else if (flags[2] != 0)
|
||||
else if (in_system_header && flags[1] != 0 && flags[2] != 0)
|
||||
{
|
||||
c_header_level = 1;
|
||||
++pending_lang_change;
|
||||
|
Loading…
Reference in New Issue
Block a user