http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48306
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-02 22:18:25 UTC --- Author: jakub Date: Mon Jan 2 22:18:21 2012 New Revision: 182820 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182820 Log: * 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. Modified: trunk/libiberty/ChangeLog trunk/libiberty/make-relative-prefix.c