function.c (assign_stack_local_1, [...]): Do not call gen_mode_alignment when mode...
authorJan Hubicka <jh@suse.cz>
Sun, 30 Jul 2000 18:26:46 +0000 (18:26 +0000)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 30 Jul 2000 18:26:46 +0000 (18:26 +0000)
* function.c (assign_stack_local_1, assign_stack_temp_for_type):
Do not call gen_mode_alignment when mode is BLKmode.

From-SVN: r35345

gcc/ChangeLog
gcc/function.c

index 1a175ceb5550a8c354c75fe2b0fea6c3785c074e..b094dc4e115a71ca1411cc99b79f350767a44378 100644 (file)
@@ -1,3 +1,8 @@
+Sun Jul 30 20:25:21 MET DST 2000  Jan Hubicka  <jh@suse.cz>
+
+       * function.c (assign_stack_local_1, assign_stack_temp_for_type): 
+       Do not call gen_mode_alignment when mode is BLKmode.
+
 Sun Jul 30 20:21:54 MET DST 2000  Jan Hubicka  <jh@suse.cz>
 
        * loop.c (express_from_1): Fix call of simplify_gen_binary.
index fc8be4ccd7a88d4d59a7df799cebab6b4c0e0970..51a7bb95c94ee8e9855899006339fcf0382e7972 100644 (file)
@@ -551,9 +551,10 @@ assign_stack_local_1 (mode, size, align, function)
     {
       tree type;
 
-      alignment = GET_MODE_ALIGNMENT (mode);
       if (mode == BLKmode)
        alignment = BIGGEST_ALIGNMENT;
+      else
+        alignment = GET_MODE_ALIGNMENT (mode);
 
       /* Allow the target to (possibly) increase the alignment of this
         stack slot.  */
@@ -676,9 +677,10 @@ assign_stack_temp_for_type (mode, size, keep, type)
   else 
     alias_set = 0;
 
-  align = GET_MODE_ALIGNMENT (mode);
   if (mode == BLKmode)
     align = BIGGEST_ALIGNMENT;
+  else
+    align = GET_MODE_ALIGNMENT (mode);
 
   if (! type)
     type = type_for_mode (mode, 0);