diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-03-28 13:42:48 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2019-03-28 13:42:48 +0000 |
commit | 92cf93d98f0e07294056a472852b3b965c42b72d (patch) | |
tree | 83adffbb20405d9bfafa985ff16b43d0f8d50c3c /gcc | |
parent | 684f60085bbeeb65ce5cad0065618f3c3789f0e8 (diff) | |
download | gcc-92cf93d98f0e07294056a472852b3b965c42b72d.zip gcc-92cf93d98f0e07294056a472852b3b965c42b72d.tar.gz gcc-92cf93d98f0e07294056a472852b3b965c42b72d.tar.bz2 |
PR c/79022 fix mismatch parameter order in declaratio
The declaration of create_nested_ptr_option in the header has the 'from'
and 'to' parameters in the opposite order from the definition in
gengtype.c:
/* Return an options structure for a "nested_ptr" option. */
options_p
create_nested_ptr_option (options_p next, type_p t,
const char *to, const char *from)
and the only caller in gengtype-parse.c:
return create_nested_ptr_option (prev, ty, to, from);
This patch swaps the parameter names in the declaration.
PR c/79022
* gengtype.h (create_nested_ptr_option): Fix parameter names to match
definition.
From-SVN: r269990
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/gengtype.h | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a4db0fc..2a85299 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-03-28 Jonathan Wakely <jwakely@redhat.com> + + PR c/79022 + * gengtype.h (create_nested_ptr_option): Fix parameter names to match + definition. + 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl> PR target/85667 diff --git a/gcc/gengtype.h b/gcc/gengtype.h index db9cb0f..02be0c1 100644 --- a/gcc/gengtype.h +++ b/gcc/gengtype.h @@ -203,8 +203,8 @@ options_p create_nested_option (options_p next, const char* name, struct nested_ptr_data* info); /* Create a nested pointer option. */ -options_p create_nested_ptr_option (options_p, type_p t, - const char *from, const char *to); +options_p create_nested_ptr_option (options_p next, type_p t, + const char *to, const char *from); /* A name and a type. */ struct pair { |