[stack] Use ">" to check MAX_SUPPORTED_STACK_ALIGNMENT
H.J. Lu
hjl.tools@gmail.com
Sun Jul 20 11:54:00 GMT 2008
I am checking in this patch to use ">" instead of ">=" to check
MAX_SUPPORTED_STACK_ALIGNMENT.
H.J.
---
Index: ChangeLog.stackalign
===================================================================
--- ChangeLog.stackalign (revision 137996)
+++ ChangeLog.stackalign (working copy)
@@ -1,3 +1,9 @@
+2008-07-19 H.J. Lu <hongjiu.lu@intel.com>
+
+ * function.c (assign_stack_local_1): Use ">" instead of ">="
+ to check MAX_SUPPORTED_STACK_ALIGNMENT.
+ (locate_and_pad_parm): Likewise.
+
2008-07-08 H.J. Lu <hongjiu.lu@intel.com>
Xuepeng Guo <xuepeng.guo@intel.com>
Index: function.c
===================================================================
--- function.c (revision 137997)
+++ function.c (working copy)
@@ -385,7 +385,7 @@ assign_stack_local_1 (enum machine_mode
frame_offset -= size;
/* Ignore alignment if it exceeds MAX_SUPPORTED_STACK_ALIGNMENT. */
- if (alignment_in_bits >= MAX_SUPPORTED_STACK_ALIGNMENT)
+ if (alignment_in_bits > MAX_SUPPORTED_STACK_ALIGNMENT)
{
alignment_in_bits = MAX_SUPPORTED_STACK_ALIGNMENT;
alignment = alignment_in_bits / BITS_PER_UNIT;
@@ -3354,7 +3354,7 @@ locate_and_pad_parm (enum machine_mode p
locate->where_pad = where_pad;
/* Alignment can't exceed MAX_SUPPORTED_STACK_ALIGNMENT. */
- if (boundary >= MAX_SUPPORTED_STACK_ALIGNMENT)
+ if (boundary > MAX_SUPPORTED_STACK_ALIGNMENT)
boundary = MAX_SUPPORTED_STACK_ALIGNMENT;
locate->boundary = boundary;
More information about the Gcc-patches
mailing list