This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix make_relative_prefix_1 (PR driver/48306)
- From: Ian Lance Taylor <iant at google dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 2 Jan 2012 10:16:37 -0800
- Subject: Re: [PATCH] Fix make_relative_prefix_1 (PR driver/48306)
- References: <20111221144313.GZ1957@tyan-ft48-01.lab.bos.redhat.com>
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