Blame SOURCES/gcc32-pr13041.patch

727081
2003-11-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
727081
 
727081
	PR optimization/13041
727081
	* final.c (frame_pointer_needed): Fix comment.
727081
	* reload1.c (reload): Decrease alignment of the frame
727081
	pointer if it was used for register allocation.
727081
727081
--- gcc/final.c	1 Nov 2003 00:48:50 -0000	1.294
727081
+++ gcc/final.c	27 Nov 2003 06:45:24 -0000	1.295
727081
@@ -171,8 +171,8 @@ CC_STATUS cc_prev_status;
727081
 char regs_ever_live[FIRST_PSEUDO_REGISTER];
727081
 
727081
 /* Nonzero means current function must be given a frame pointer.
727081
-   Set in stmt.c if anything is allocated on the stack there.
727081
-   Set in reload1.c if anything is allocated on the stack there.  */
727081
+   Initialized in function.c to 0.  Set only in reload1.c as per
727081
+   the needs of the function.  */
727081
 
727081
 int frame_pointer_needed;
727081
 
727081
--- gcc/reload1.c	21 Nov 2003 05:49:05 -0000	1.413
727081
+++ gcc/reload1.c	27 Nov 2003 06:45:25 -0000	1.414
727081
@@ -1241,6 +1241,14 @@ reload (rtx first, int global)
727081
      by this, so unshare everything here.  */
727081
   unshare_all_rtl_again (first);
727081
 
727081
+#ifdef STACK_BOUNDARY
727081
+  /* init_emit has set the alignment of the hard frame pointer
727081
+     to STACK_BOUNDARY.  It is very likely no longer valid if
727081
+     the hard frame pointer was used for register allocation.  */
727081
+  if (!frame_pointer_needed)
727081
+    REGNO_POINTER_ALIGN (HARD_FRAME_POINTER_REGNUM) = BITS_PER_UNIT;
727081
+#endif
727081
+
727081
   return failure;
727081
 }
727081