From: Martin Liska Date: Thu, 9 Mar 2017 09:20:59 +0000 (+0100) Subject: Increment value instead of a pointer in ADA macro processing. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bba81f1c84837b1a9bfd5daa46d263e87577af89;p=gcc.git Increment value instead of a pointer in ADA macro processing. 2017-03-09 Martin Liska * c-ada-spec.c (macro_length): Increment value instead of a pointer. From-SVN: r245992 --- diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 451cf387eca..b14cb0d64fe 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,7 @@ +2017-03-09 Martin Liska + + * c-ada-spec.c (macro_length): Increment value instead of a pointer. + 2017-03-03 Jason Merrill * c.opt (Wnoexcept-type): New. diff --git a/gcc/c-family/c-ada-spec.c b/gcc/c-family/c-ada-spec.c index 6db741107a3..18c5ccf1054 100644 --- a/gcc/c-family/c-ada-spec.c +++ b/gcc/c-family/c-ada-spec.c @@ -72,7 +72,7 @@ macro_length (const cpp_macro *macro, int *supported, int *buffer_len, if (macro->fun_like) { - param_len++; + (*param_len)++; for (i = 0; i < macro->paramc; i++) { cpp_hashnode *param = macro->params[i];