diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-05-22 15:17:55 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-05-22 15:17:55 +0000 |
commit | c93570ad9b8a36a59f9452dd7a785f230fce96d2 (patch) | |
tree | d1d620a3c4a9ef0a74aea1deff79335d43dd88ef /gcc/gcc.c | |
parent | f8efdac83dce1f884ecac439c086ac1ec5a6946b (diff) | |
download | gcc-c93570ad9b8a36a59f9452dd7a785f230fce96d2.tar.gz |
2012-05-22 Steven Drake <sbd@NetBSD.org>
* gcc.c (do_spec_1): Add %M spec token to output multilib_os_dir.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187775 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c index e152b705393..d1ef922e051 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -377,6 +377,7 @@ or with constant text in a single argument. If multilib_dir is set, extra entries are generated with it affixed. %l process LINK_SPEC as a spec. %L process LIB_SPEC as a spec. + %M Output multilib_os_dir. %G process LIBGCC_SPEC as a spec. %R Output the concatenation of target_system_root and target_sysroot_suffix. @@ -5115,6 +5116,14 @@ do_spec_1 (const char *spec, int inswitch, const char *soft_matched_part) return value; break; + case 'M': + if (multilib_os_dir == NULL) + obstack_1grow (&obstack, '.'); + else + obstack_grow (&obstack, multilib_os_dir, + strlen (multilib_os_dir)); + break; + case 'G': value = do_spec_1 (libgcc_spec, 0, NULL); if (value != 0) |