Commit e3cb8f05 by Chen Gang Committed by Jeff Law

* gcc.c (do_spec_1): Allocate enough space for saved_suffix.

From-SVN: r213387
parent f3d95c69
2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
* gcc.c (do_spec_1): Allocate enough space for saved_suffix.
2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
* config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
......
......@@ -4894,7 +4894,7 @@ do_spec_1 (const char *spec, int inswitch, const char *soft_matched_part)
{
saved_suffix
= XNEWVEC (char, suffix_length
+ strlen (TARGET_OBJECT_SUFFIX));
+ strlen (TARGET_OBJECT_SUFFIX) + 1);
strncpy (saved_suffix, suffix, suffix_length);
strcpy (saved_suffix + suffix_length,
TARGET_OBJECT_SUFFIX);
......
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