[Ada] Implement switches to reorder record components in gigi
Eric Botcazou
ebotcazou@adacore.com
Mon Mar 21 12:31:00 GMT 2011
This is the gigi part of the implementation of the -gnatd.r/-gnatd.v switches
that allow record components to be reordered in certain cases. The algorithm
is documented in the code.
Tested on i586-suse-linux, applied on the mainline.
2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (components_to_record): Add REORDER parameter,
rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
to the end of the list. Adjust recursive call. Rename local variable.
If REORDER is true, reorder components of the record type.
(gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
components_to_record and adjust the parameter list.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-diff
Size: 12571 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110321/cdd73024/attachment.bin>
More information about the Gcc-patches
mailing list