Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / lang / gcc47 / patches / patch-gcc_gcc.c
blob10afc22f31cfeb2ad0140a56b484c4f385b68a71
1 $NetBSD: patch-gcc_gcc.c,v 1.2 2012/04/27 04:53:03 sbd Exp $
3 Add %M spec string.
5 Patch commited to gcc in svn id 187775.
7 --- gcc/gcc.c.orig 2012-02-28 17:31:38.000000000 +0000
8 +++ gcc/gcc.c
9 @@ -5115,6 +5115,13 @@ do_spec_1 (const char *spec, int inswitc
10 return value;
11 break;
13 + case 'M':
14 + if (multilib_os_dir == NULL)
15 + obstack_1grow (&obstack, '.');
16 + else
17 + obstack_grow (&obstack, multilib_os_dir, strlen(multilib_os_dir));
18 + break;
20 case 'G':
21 value = do_spec_1 (libgcc_spec, 0, NULL);
22 if (value != 0)