Prevent LTO wrappers to process a recursive execution
authorMartin Liska <mliska@suse.cz>
Thu, 7 Jul 2016 12:03:39 +0000 (14:03 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 7 Jul 2016 12:03:39 +0000 (12:03 +0000)
commitf965d3dad7edb527e465d7d2811294177daee53c
tree9776d8d0e93b2015a8b4ebed34c65d2f6e684da5
parent019d6598357659e05640cf762b75e18953f70fe9
Prevent LTO wrappers to process a recursive execution

* file-find.c (remove_prefix): New function.
* file-find.h (remove_prefix): Declare the function.
* gcc-ar.c (main): Skip a folder of the wrapper if
a wrapped binary would point to the same file.

From-SVN: r238089
gcc/ChangeLog
gcc/file-find.c
gcc/file-find.h
gcc/gcc-ar.c