diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2017-10-05 20:08:27 +0000 |
---|---|---|
committer | Bernd Edlinger <edlinger@gcc.gnu.org> | 2017-10-05 20:08:27 +0000 |
commit | 4bc4b2b48283df5400da21dfb6bfe5d6864ad035 (patch) | |
tree | e6d922a03b1a675956b32b823732608950e506ec /gcc/c-family/c-pretty-print.c | |
parent | 9add86be80b805afd59414c62e56019252591eea (diff) | |
download | gcc-4bc4b2b48283df5400da21dfb6bfe5d6864ad035.zip gcc-4bc4b2b48283df5400da21dfb6bfe5d6864ad035.tar.gz gcc-4bc4b2b48283df5400da21dfb6bfe5d6864ad035.tar.bz2 |
c-pretty-print.c (pp_c_parameter_type_list): Print ...
2017-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
* c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
functions.
testsuite:
2017-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
* gcc.dg/Wincompatible-pointer-types-1.c: New test.
From-SVN: r253460
Diffstat (limited to 'gcc/c-family/c-pretty-print.c')
-rw-r--r-- | gcc/c-family/c-pretty-print.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/c-family/c-pretty-print.c b/gcc/c-family/c-pretty-print.c index b8b8f66..745f0fd 100644 --- a/gcc/c-family/c-pretty-print.c +++ b/gcc/c-family/c-pretty-print.c @@ -521,6 +521,11 @@ pp_c_parameter_type_list (c_pretty_printer *pp, tree t) else pp->abstract_declarator (TREE_VALUE (parms)); } + if (!first && !parms) + { + pp_separate_with (pp, ','); + pp_c_ws_string (pp, "..."); + } } pp_c_right_paren (pp); } |