[Ada] Fix handling of incomplete types with -fdump-ada-spec (2/2)

Eric Botcazou ebotcazou@adacore.com
Wed Feb 28 14:00:00 GMT 2018


This extends the previous change to "opaque" types, i.e. types that are still 
incomplete at the end of the translation unit.

Tested on x86_64-suse-linux, applied on the mainline.


2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>

c-family/
	* c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic
	address for incomplete structures.
	(dump_forward_type): Do not bail out for incomplete structures.
	(dump_ada_declaration): Do not special-case incomplete structures
	for subtypes.  Dump them as null records for types.


2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>

	* c-c++-common/dump-ada-spec-11.c: New test.

-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dump-ada-spec-11.c
Type: text/x-csrc
Size: 226 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180228/9d9a7752/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p2.diff
Type: text/x-patch
Size: 2626 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180228/9d9a7752/attachment-0001.bin>


More information about the Gcc-patches mailing list