Commit efab3e3a by Oliver Browne Committed by Jeff Law

gimplify.c (flag_instrument_functions_exclude_p): Include namespace/class…

gimplify.c (flag_instrument_functions_exclude_p): Include namespace/class information in the printable name.

	* gimplify.c (flag_instrument_functions_exclude_p): Include
	namespace/class information in the printable name.
	* opts.c (add_comma_separated_to_vector): Add NUL terminator
	to tokens entered into the vector.

From-SVN: r273766
parent 58f3f2c3
2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
* gimplify.c (flag_instrument_functions_exclude_p): Include
namespace/class information in the printable name.
* opts.c (add_comma_separated_to_vector): Add NUL terminator
to tokens entered into the vector.
2019-07-24 Eric Botcazou <ebotcazou@adacore.com> 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
* tree-nested.c (build_simple_mem_ref_notrap): New function. * tree-nested.c (build_simple_mem_ref_notrap): New function.
......
...@@ -14354,7 +14354,7 @@ flag_instrument_functions_exclude_p (tree fndecl) ...@@ -14354,7 +14354,7 @@ flag_instrument_functions_exclude_p (tree fndecl)
int i; int i;
char *s; char *s;
name = lang_hooks.decl_printable_name (fndecl, 0); name = lang_hooks.decl_printable_name (fndecl, 1);
FOR_EACH_VEC_ELT (*v, i, s) FOR_EACH_VEC_ELT (*v, i, s)
if (strstr (name, s) != NULL) if (strstr (name, s) != NULL)
return true; return true;
......
...@@ -262,6 +262,8 @@ add_comma_separated_to_vector (void **pvec, const char *arg) ...@@ -262,6 +262,8 @@ add_comma_separated_to_vector (void **pvec, const char *arg)
else else
*w++ = *r++; *w++ = *r++;
} }
*w = '\0';
if (*token_start != '\0') if (*token_start != '\0')
v->safe_push (token_start); v->safe_push (token_start);
......
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