This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Tests gcc.dg/c99-scope-2.c and gcc.c-torture/execute/align-1.c wrong?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]