[PATCH] Fix make_relative_prefix_1 (PR driver/48306)
Ian Lance Taylor
iant@google.com
Mon Jan 2 18:16:00 GMT 2012
On Wed, Dec 21, 2011 at 6:43 AM, Jakub Jelinek <jakub@redhat.com> wrote:
> 2011-12-21 Jakub Jelinek <jakub@redhat.com>
>
> * make-relative-prefix.c (make_relative_prefix_1): Avoid
> stack overflow if PATH contains just a single entry and
> HOST_EXECUTABLE_SUFFIX needs to be used.
>
> PR driver/48306
> * make-relative-prefix.c: Include sys/stat.h.
> (make_relative_prefix_1): If access succeeds, check also stat
> if nstore is a regular file.
This is OK.
Thanks.
Ian
More information about the Gcc-patches
mailing list