Fix segfault on anonymous structures with -fdump-ada-spec

Eric Botcazou ebotcazou@adacore.com
Sat Jul 29 09:52:00 GMT 2017


This is a trivial patch to fix a segfault on anonymous structures with the 
special -fdump-ada-spec switch.  It also contains a fixlet for enumeral types.

Bootstrapped/regtested on x86_64-suse-linux, applied on the mainline.


2017-07-29  Eric Botcazou  <ebotcazou@adacore.com>

c-family/
	* c-ada-spec.c (dump_generic_ada_node): Take into account signedness
	for enumeral types.
	(print_ada_declaration): Add missing guard for record types.


2017-07-29  Eric Botcazou  <ebotcazou@adacore.com>

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

-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-patch
Size: 800 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170729/21dff715/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dump-ada-spec-7.c
Type: text/x-csrc
Size: 277 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170729/21dff715/attachment-0001.bin>


More information about the Gcc-patches mailing list