From 28b4fc515b603d90e022b8c0a75cde539a27d3d1 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Mon, 3 Sep 2012 12:34:22 +0100 Subject: common.opt (--no-sysroot-suffix): New driver option. * common.opt (--no-sysroot-suffix): New driver option. * doc/invoke.texi (--no-sysroot-suffix): Document. * gcc.c (driver_handle_option): Handle --no-sysroot-suffix as not needing spec processing. (main): Do not process sysroot suffixes if no_sysroot_suffix. From-SVN: r190882 --- gcc/gcc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/gcc.c') diff --git a/gcc/gcc.c b/gcc/gcc.c index 815747e..5f68d59 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -3249,6 +3249,7 @@ driver_handle_option (struct gcc_options *opts, add_linker_option ("--target-help", 13); break; + case OPT__no_sysroot_suffix: case OPT_pass_exit_codes: case OPT_print_search_dirs: case OPT_print_file_name_: @@ -6340,6 +6341,7 @@ main (int argc, char **argv) /* Process sysroot_suffix_spec. */ if (*sysroot_suffix_spec != 0 + && !no_sysroot_suffix && do_spec_2 (sysroot_suffix_spec) == 0) { if (VEC_length (const_char_p, argbuf) > 1) @@ -6363,6 +6365,7 @@ main (int argc, char **argv) /* Process sysroot_hdrs_suffix_spec. */ if (*sysroot_hdrs_suffix_spec != 0 + && !no_sysroot_suffix && do_spec_2 (sysroot_hdrs_suffix_spec) == 0) { if (VEC_length (const_char_p, argbuf) > 1) -- cgit v1.1