[Ada] Small tweak to -fdump-ada-spec for assignment operators

Eric Botcazou ebotcazou@adacore.com
Tue May 21 07:01:00 GMT 2019


The interfacing with C++ assignment operators in Ada is not very clear but we 
should at least make sure that the generated binding compile.

Tested on x86_64-suse-linux, applied on mainline as obvious for the cp/ part.


2019-05-21  Eric Botcazou  <ebotcazou@adacore.com>

c-family/
	* c-ada-spec.h (enum cpp_operation): Add IS_ASSIGNMENT_OPERATOR.
	* c-ada-spec.c (print_assignment_operator): New function.
	(dump_ada_declaration) <FUNCTION_DECL>: Call it do dump explicit copy
	assignment operators declared as methods and filter out the others.


2019-05-21  Eric Botcazou  <ebotcazou@adacore.com>

cp/
	* decl2.c (cpp_check) <IS_ASSIGNMENT_OPERATOR>: New case.

-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-patch
Size: 2967 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190521/277de592/attachment.bin>


More information about the Gcc-patches mailing list