aboutsummaryrefslogtreecommitdiff
path: root/gcc/godump.c
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2021-12-29 15:08:32 -0800
committerIan Lance Taylor <iant@golang.org>2021-12-29 15:52:23 -0800
commit62c3f75fd29e93054f3aeb8a623fd52c98c3db0b (patch)
treed0dc1cd7f4e0d529916835e554266da48fb10940 /gcc/godump.c
parente5acfcad98f3fa33e141f4e6bc06f7d7c13496e1 (diff)
downloadgcc-62c3f75fd29e93054f3aeb8a623fd52c98c3db0b.zip
gcc-62c3f75fd29e93054f3aeb8a623fd52c98c3db0b.tar.gz
gcc-62c3f75fd29e93054f3aeb8a623fd52c98c3db0b.tar.bz2
compiler, libgo: don't pad sparc64-linux epollevent
Change the compiler to not add zero padding because of zero-sized fields named "_", since those can't be referenced anyhow. Change the sparc-linux64 epollevent struct to name the alignment field "_", to avoid zero padding. Fixes PR go/103847 PR go/103847 * godump.c (go_force_record_alignment): Name the alignment field "_". Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/374914
Diffstat (limited to 'gcc/godump.c')
-rw-r--r--gcc/godump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/godump.c b/gcc/godump.c
index a50aef1..f016989 100644
--- a/gcc/godump.c
+++ b/gcc/godump.c
@@ -651,7 +651,7 @@ go_force_record_alignment (struct obstack *ob, const char *type_string,
unsigned int index, const char *error_string)
{
index = go_append_artificial_name (ob, index);
- obstack_grow (ob, "_align ", 7);
+ obstack_grow (ob, "_ ", 2);
if (type_string == NULL)
obstack_grow (ob, error_string, strlen (error_string));
else