From bba81f1c84837b1a9bfd5daa46d263e87577af89 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Thu, 9 Mar 2017 10:20:59 +0100 Subject: [PATCH] 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 --- gcc/c-family/ChangeLog | 4 ++++ gcc/c-family/c-ada-spec.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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]; -- 2.30.2