aboutsummaryrefslogtreecommitdiff
path: root/gcc/file-find.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2016-07-07 14:03:39 +0200
committerMartin Liska <marxin@gcc.gnu.org>2016-07-07 12:03:39 +0000
commitf965d3dad7edb527e465d7d2811294177daee53c (patch)
tree9776d8d0e93b2015a8b4ebed34c65d2f6e684da5 /gcc/file-find.h
parent019d6598357659e05640cf762b75e18953f70fe9 (diff)
downloadgcc-f965d3dad7edb527e465d7d2811294177daee53c.zip
gcc-f965d3dad7edb527e465d7d2811294177daee53c.tar.gz
gcc-f965d3dad7edb527e465d7d2811294177daee53c.tar.bz2
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
Diffstat (limited to 'gcc/file-find.h')
-rw-r--r--gcc/file-find.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/file-find.h b/gcc/file-find.h
index 5ad9a5f..19a4746 100644
--- a/gcc/file-find.h
+++ b/gcc/file-find.h
@@ -41,6 +41,7 @@ extern void find_file_set_debug (bool);
extern char *find_a_file (struct path_prefix *, const char *, int);
extern void add_prefix (struct path_prefix *, const char *);
extern void add_prefix_begin (struct path_prefix *, const char *);
+extern void remove_prefix (const char *prefix, struct path_prefix *);
extern void prefix_from_env (const char *, struct path_prefix *);
extern void prefix_from_string (const char *, struct path_prefix *);