diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-03 11:34:22 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-03 11:34:22 +0000 |
commit | 70eb49f5d3df5141b74de5d7458548c660df7635 (patch) | |
tree | 864ddfc1802112f202a37bdbc0819fc724c00fdd /gcc/gcc.c | |
parent | 9cc1eb5a9e4e7ed4fea21a67fb20abdbfd1e553e (diff) | |
download | gcc-70eb49f5d3df5141b74de5d7458548c660df7635.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190882 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c index 815747eaf0f..5f68d5978e3 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) |