diff options
author | Alexandre Oliva <oliva@adacore.com> | 2022-12-29 14:33:07 -0300 |
---|---|---|
committer | Alexandre Oliva <oliva@gnu.org> | 2022-12-29 14:39:47 -0300 |
commit | 603da201681ad06342055e8c12a656f5289e52a8 (patch) | |
tree | 4312591c8fce568e824ab3875e420cd4b769b8cc /gcc/fortran/parse.cc | |
parent | 512af6c3803c4714cb2a92a8db263fb7f2b4ea10 (diff) | |
download | gcc-603da201681ad06342055e8c12a656f5289e52a8.zip gcc-603da201681ad06342055e8c12a656f5289e52a8.tar.gz gcc-603da201681ad06342055e8c12a656f5289e52a8.tar.bz2 |
prevent hash set/map insertion of deleted entries
Just like the recently-added checks for empty entries, add checks for
deleted entries as well. This didn't catch any problems, but it might
prevent future accidents. Suggested by David Malcolm.
for gcc/ChangeLog
* hash-map.h (put, get_or_insert): Check that added entry
doesn't look deleted either.
* hash-set.h (add): Likewise.
Diffstat (limited to 'gcc/fortran/parse.cc')
0 files changed, 0 insertions, 0 deletions