This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix preferred_stack_boundary initialization
- To: gcc-patches at gcc dot gnu dot org
- Subject: Fix preferred_stack_boundary initialization
- From: Andreas Jaeger <aj at suse dot de>
- Date: 03 Feb 2001 21:36:54 +0100
- Cc: wallner at ims dot uni-hannover dot de (Jens Wallner)
Looking through the stack alignments issues I mentioned on the gcc
list, I noticed the following bug - and it might be that this fixes
the problem Jens had (Jens, can you check this? The patch is against
current gcc from CVS).
Is this ok to commit? Or did I misunderstood the documentation?
I've bootstrapped and run make check on i686-linux.
Andreas
2001-02-03 Andreas Jaeger <aj@suse.de>
* function.c (prepare_function_start): Correctly set
preferred_stack_boundary.
============================================================
Index: gcc/function.c
--- gcc/function.c 2001/01/20 13:40:23 1.248
+++ gcc/function.c 2001/02/03 16:58:04
@@ -6065,7 +6065,7 @@
#ifdef STACK_BOUNDARY
cfun->stack_alignment_needed = STACK_BOUNDARY;
- cfun->preferred_stack_boundary = STACK_BOUNDARY;
+ cfun->preferred_stack_boundary = PREFERRED_STACK_BOUNDARY;
#else
cfun->stack_alignment_needed = 0;
cfun->preferred_stack_boundary = 0;
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj