This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r216806 - in /trunk/gcc: ChangeLog godump.c tes...
- From: ian at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 28 Oct 2014 17:29:40 -0000
- Subject: r216806 - in /trunk/gcc: ChangeLog godump.c tes...
Author: ian
Date: Tue Oct 28 17:29:40 2014
New Revision: 216806
URL: https://gcc.gnu.org/viewcvs?rev=216806&root=gcc&view=rev
Log:
gcc/:
* godump.c (precision_to_units): New helper function.
(go_append_artificial_name): Ditto.
(go_append_decl_name): Ditto.
(go_append_bitfield): Ditto.
(go_get_uinttype_for_precision): Ditto.
(go_append_padding): Ditto.
(go_force_record_alignment): Ditto.
(go_format_type): Represent unions with an array of uints of the size
of the alignment in go. This fixes the 'random' size of the union's
representation using just the first field.
(go_format_type): Add argument that indicates whether a record is
nested (used for generation of artificial go names).
(go_output_fndecl): Adapt to new go_format_type signature.
(go_output_typedef): Ditto.
(go_output_var): Ditto.
(go_output_var): Prefer to output type as alias (typedef).
(go_format_type): Bitfields in records are simulated as arrays of bytes
in go.
* godump.c (go_format_type): Fix handling of arrays with zero elements.
gcc/testsuite/:
* gcc.misc-tests/godump.exp: New.
* gcc.misc-tests/godump-1.c: New.
Added:
trunk/gcc/testsuite/gcc.misc-tests/godump-1.c
trunk/gcc/testsuite/gcc.misc-tests/godump.exp
Modified:
trunk/gcc/ChangeLog
trunk/gcc/godump.c
trunk/gcc/testsuite/ChangeLog