[llvm-branch-commits] [llvm-gcc-branch] r105536 - in /llvm-gcc-4.2/branches/Apple/Troughton: ./ driverdriver.c

Bob Wilson bob.wilson at apple.com
Mon Jun 7 10:11:54 PDT 2010


Author: bwilson
Date: Mon Jun  7 12:11:54 2010
New Revision: 105536

URL: http://llvm.org/viewvc/llvm-project?rev=105536&view=rev
Log:
--- Merging r105535 into '.':
U    driverdriver.c

Modified:
    llvm-gcc-4.2/branches/Apple/Troughton/   (props changed)
    llvm-gcc-4.2/branches/Apple/Troughton/driverdriver.c

Propchange: llvm-gcc-4.2/branches/Apple/Troughton/
------------------------------------------------------------------------------
    svn:mergeinfo = /llvm-gcc-4.2/trunk:105535

Modified: llvm-gcc-4.2/branches/Apple/Troughton/driverdriver.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/branches/Apple/Troughton/driverdriver.c?rev=105536&r1=105535&r2=105536&view=diff
==============================================================================
--- llvm-gcc-4.2/branches/Apple/Troughton/driverdriver.c (original)
+++ llvm-gcc-4.2/branches/Apple/Troughton/driverdriver.c Mon Jun  7 12:11:54 2010
@@ -1306,8 +1306,8 @@
 
   /* If argv[0] is a symbolic link, use the directory of the pointed-to file
      to find compiler components. */
-
-  if ((linklen = readlink (argv[0], path_buffer, PATH_MAX)) != -1)
+  /* LLVM LOCAL: loop to follow multiple levels of links */
+  while ((linklen = readlink (argv[0], path_buffer, PATH_MAX)) != -1)
     {
       /* readlink succeeds if argv[0] is a symlink.  path_buffer now contains
 	 the file referenced. */





More information about the llvm-branch-commits mailing list