This is the mail archive of the gcc-bugs@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]

gcc-2.95.2 breaks stack alignment from aligned main()


I have a small test program which exhibits the following stack alignment
bug under gcc-2.95.2 on Linux (Pentium-II, RedHat 5.2):

	double variables in main() are correctly aligned to
	8-byte boundaries.

	double variables in a subroutine blah() are misaligned,
	despite the alignment supposedly done by the default
	value of -mpreferred-stack-alignment.

Because main() is aligned, and blah() is not, it seems clear that this is
a gcc problem, rather than an OS/glibc/loader problem.

The ~30 line test program, which includes checks to test the alignment of
double variables in main() and blah(), can be found in my previous post:

	http://egcs.cygnus.com/ml/gcc-bugs/1999-11/msg00167.html

I am posting this because it looks like some people misunderstood my
previous message; sorry about the confusion.

Thanks in advance for any confirmation, patches, pointers, etcetera.

Cordially,
Steven G. Johnson



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