aboutsummaryrefslogtreecommitdiff
path: root/gcc/ChangeLog
diff options
context:
space:
mode:
authorDominik Vogt <vogt@linux.vnet.ibm.com>2014-10-28 17:29:40 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2014-10-28 17:29:40 +0000
commit4bbed9ce68818456826d1d25441ef7c1e0d2d85b (patch)
treeb48b4e78ca9ac203cf3205763cdd885ebe111c72 /gcc/ChangeLog
parentc582198bd9e28ee85e7bf4d4caa68e1ce9b0d924 (diff)
downloadgcc-4bbed9ce68818456826d1d25441ef7c1e0d2d85b.zip
gcc-4bbed9ce68818456826d1d25441ef7c1e0d2d85b.tar.gz
gcc-4bbed9ce68818456826d1d25441ef7c1e0d2d85b.tar.bz2
godump.c (precision_to_units): New helper function.
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. From-SVN: r216806
Diffstat (limited to 'gcc/ChangeLog')
-rw-r--r--gcc/ChangeLog23
1 files changed, 23 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4de57e0..a2f87f7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,26 @@
+2014-10-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
+
+ * 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.
+
2014-10-28 Andrew MacLeod <amacleod@redhat.com>
* cgraph.h: Flatten. Remove all include files.