Message ID | alpine.LNX.2.00.1204272112070.29730@nygne.qenxr.bet.am |
---|---|
State | New |
Headers | show |
On Fri, 27 Apr 2012, Steven Drake wrote: > 2012-04-27 Steven Drake <sbd@NetBSD.org> > > * gcc.c (do_spec_1): Add %M spec token to output multilib_os_dir. Thanks, I've committed this patch with the addition of %M to the comment in gcc.c that documents specs.
--- gcc/gcc.c.orig 2012-02-28 17:31:38.000000000 +0000 +++ gcc/gcc.c @@ -5115,6 +5115,13 @@ do_spec_1 (const char *spec, int inswitc 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)