This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix up _cpp_find_file
- From: Tom Tromey <tromey at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 28 Feb 2013 12:18:46 -0700
- Subject: Re: [PATCH] Fix up _cpp_find_file
- References: <20130227201814.GO12913@tucnak.redhat.com>
>>>>> "Jakub" == Jakub Jelinek <jakub@redhat.com> writes:
Jakub> 2013-02-27 Jakub Jelinek <jakub@redhat.com>
Jakub> * files.c (_cpp_find_file): If returning early, before storing
Jakub> something to *hash_slot and *hash_slot is NULL, call htab_clear_slot
Jakub> on it. Access *hash_slot using void * type rather than
Jakub> struct file_hash_entry * to avoid aliasing issues.
This is ok. Thanks.
Tom