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]

Re: Resend: -fpack-struct again


> On i686-pc-linux-gnu target (maybe others) gcc-2.95.2
> doesn't honor the -fpack-struct command line switch.

Thanks for your bug report. Interesting enough, I could not reproduce
it on i586-pc-linux-gnu. For your example, the compiler generates

	.file	"a.c"
	.version	"01.01"
gcc2_compiled.:
.globl st
.data
	.type	 st,@object
	.size	 st,16
st:
	.long .LC0
	.value 1
	.long .LC1
	.value 2
	.long 123456
.section	.rodata
.LC1:
	.string	"You"
.LC0:
	.string	"Hello"
	.ident	"GCC: (GNU) 2.95.2 19991024 (release)"

Are you sure you've been using the right switch?

Regards,
Martin


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