mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-20 01:49:06 +08:00
cppinit.c (merge_include_chains): Check for brack being NULL before attempting to merge it with qtail.
* cppinit.c (merge_include_chains): Check for brack being NULL before attempting to merge it with qtail. From-SVN: r49814
This commit is contained in:
parent
d2af4dbdcc
commit
afb58288e4
@ -1,3 +1,8 @@
|
||||
2002-02-16 Zack Weinberg <zack@codesourcery.com>
|
||||
|
||||
* cppinit.c (merge_include_chains): Check for brack being
|
||||
NULL before attempting to merge it with qtail.
|
||||
|
||||
2002-02-16 Andrew Cagney <ac131313@redhat.com>
|
||||
|
||||
* config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
|
||||
|
@ -376,7 +376,8 @@ merge_include_chains (pfile)
|
||||
qtail->next = brack;
|
||||
|
||||
/* If brack == qtail, remove brack as it's simpler. */
|
||||
if (INO_T_EQ (qtail->ino, brack->ino) && qtail->dev == brack->dev)
|
||||
if (brack && INO_T_EQ (qtail->ino, brack->ino)
|
||||
&& qtail->dev == brack->dev)
|
||||
brack = remove_dup_dir (pfile, qtail);
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user