locate_and_pad_parm tweek

Richard Henderson rth@cygnus.com
Fri Oct 20 10:42:00 GMT 2000


2000-10-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

        * function.c (locate_and_pad_parm): Don't align stack unconditionally.
        Fixes execute/20001017-1.c on powerpc-linux-gnu.

This patch could leave alignment_pad uninitialized, which
prevented an Alpha bootstrap.  Fixed thus.



r~


        * function.c (locate_and_pad_parm): Zero alignment_pad.

Index: function.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/function.c,v
retrieving revision 1.225
diff -c -p -d -r1.225 function.c
*** function.c	2000/10/17 22:17:31	1.225
--- function.c	2000/10/20 17:38:37
*************** locate_and_pad_parm (passed_mode, type, 
*** 5117,5122 ****
--- 5117,5124 ----
  
    arg_size_ptr->var = 0;
    arg_size_ptr->constant = 0;
+   alignment_pad->var = 0;
+   alignment_pad->constant = 0;
  
  #ifdef ARGS_GROW_DOWNWARD
    if (initial_offset_ptr->var)


More information about the Gcc-patches mailing list