This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Tests gcc.dg/c99-scope-2.c and gcc.c-torture/execute/align-1.c wrong?
- To: <gcc at gcc dot gnu dot org>
- Subject: Tests gcc.dg/c99-scope-2.c and gcc.c-torture/execute/align-1.c wrong?
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- Date: Mon, 30 Jul 2001 05:10:54 -0400 (EDT)
gcc.dg/c99-scope-2.c assumes
sizeof (struct {int a;}) < sizeof (struct {int a; int b;})
and gcc.c-torture/execute/align-1.c assumes
sizeof (struct {int a;}) == sizeof (int).
I believe it is valid (though not necessarily reasonable) for a
64-bit port with 32-bit ints to give struct {int a;}) the same
size as struct {int a; int b;}, in this case a multiple of 64
bits.
Or is there a language issue?
Yeah, I know; no need to set STRUCTURE_SIZE_BOUNDARY high when
padding can fix the alignment. I'm not going to push this
issue, but AFAICT the tests are incorrectly failing.
brgds, H-P