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]

Fix preferred_stack_boundary initialization



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

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