diff options
author | Joseph Myers <joseph@codesourcery.com> | 2012-09-03 12:34:22 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2012-09-03 12:34:22 +0100 |
commit | 28b4fc515b603d90e022b8c0a75cde539a27d3d1 (patch) | |
tree | 864ddfc1802112f202a37bdbc0819fc724c00fdd /gcc/gcc.c | |
parent | d6cd87119867047cb1a2fd9b1618c77aef122fc9 (diff) | |
download | gcc-28b4fc515b603d90e022b8c0a75cde539a27d3d1.zip gcc-28b4fc515b603d90e022b8c0a75cde539a27d3d1.tar.gz gcc-28b4fc515b603d90e022b8c0a75cde539a27d3d1.tar.bz2 |
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
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |