Commit 55bd9f24 by Jeffrey Oldham Committed by Jeffrey D. Oldham

gcc.c (do_spec_1): Fix off-by-one error for '%M' case.

2001-02-14  Jeffrey Oldham  <oldham@codesourcery.com>

	* gcc.c (do_spec_1): Fix off-by-one error for '%M' case.

From-SVN: r39684
parent c6d9a88c
2001-02-14 Jeffrey Oldham <oldham@codesourcery.com>
* gcc.c (do_spec_1): Fix off-by-one error for '%M' case.
2001-02-14 Mark Mitchell <mark@codesourcery.com> 2001-02-14 Mark Mitchell <mark@codesourcery.com>
* Makefile.in (toplev.o): Depend on params.h. * Makefile.in (toplev.o): Depend on params.h.
......
...@@ -4493,7 +4493,7 @@ do_spec_1 (spec, inswitch, soft_matched_part) ...@@ -4493,7 +4493,7 @@ do_spec_1 (spec, inswitch, soft_matched_part)
len = strlen (multilib_dir); len = strlen (multilib_dir);
obstack_blank (&obstack, len + 1); obstack_blank (&obstack, len + 1);
p = obstack_next_free (&obstack) - len; p = obstack_next_free (&obstack) - (len + 1);
*p++ = '_'; *p++ = '_';
for (q = multilib_dir; *q ; ++q, ++p) for (q = multilib_dir; *q ; ++q, ++p)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment