Disable GNAT encodings by default

Eric Botcazou botcazou@adacore.com
Mon Aug 16 10:17:08 GMT 2021

Given the latest work in the compiler and debugger, we no longer need to use
most GNAT-specific encodings in the debug info generated for an Ada program,
so the attached patch disables them, except with -fgnat-encodings=all.

Tested on x86-64/Linux, applied on the mainline as obvious.

2021-08-16  Eric Botcazou  <ebotcazou@adacore.com>

	* dwarf2out.c (add_data_member_location_attribute): Use GNAT
	encodings only when -fgnat-encodings=all is specified.
	(add_bound_info): Likewise.
	(add_byte_size_attribute): Likewise.
	(gen_member_die): Likewise.

Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-patch
Size: 3092 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210816/9369520c/attachment.bin>

More information about the Gcc-patches mailing list