This is the mail archive of the gcc-patches@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] |
Hi Richard, : 2000-08-27 Nick Clifton <nickc@redhat.com> : : * tree.c (make_node): Initialise DECL_ALIGN and TYPE_ALIGN to : BITS_PER_UNIT not 1, since alignments are now in bits not : bytes. : : We discussed this once before. These default values really shouldn't be : used, so one could argue they should be setting it to zero. Why are : incompletely laid-out types or objects being used? I have no idea. The test case looks like this: typedef struct _foo foo; extern foo bar; struct _foo { int a; }; void baz (void) { bar.a = 0; } It is the assignment to 'bar' in baz that is causing the problem to trigger. Cheers Nick
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |