diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-03-30 13:46:05 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-03-30 13:46:05 +0000 |
commit | 80909c64bcc9414f270e9e13618c3bf576d05b61 (patch) | |
tree | 4604157a949437de045f5e4819a744fa071efad5 /gcc/config/sparc/sparc.c | |
parent | 68e35eeb6539a44d652473418ef35ac82700fc8d (diff) | |
download | gcc-80909c64bcc9414f270e9e13618c3bf576d05b61.tar.gz |
* calls.c (expand_call): Pass bit alignment to mark_reg_pointer.
* explow.c (memory_address, allocate_dynamic_stack_space): Likewise.
* function.c (assign_parms): Likewise.
* integrate.c (expand_inline_function): Likewise.
* stmt.c (expand_decl): Likewise.
(copy_rtx_and_substitute): Likewise.
* expr.c (expand_expr, expand_expr_unaligned): Likewise.
(clear_by_pieces): Fix error in last change.
* emit-rtl.c (init_emit): Set known registers alignment in bits.
* function.h (regno_pointer_align): Now unsigned.
* config/arm/arm.c (alignable_memory_operand): REGNO_POINTER_ALIGN
is in bits.
* config/i386/i386.c (aligned_operand): Likewise.
* config/sparc/sparc.c (mem_min_alignment): Likewise.
* config/alpha/alpha.c (aligned_memory_operand): Likewise.
(unaligned_memory_operand): Likewise.
(alpha_expand_block_move, alpha_expand_block_clear): Likewise.
Also make alignments and sizes unsigned and some whitespace cleanup.
(alpha_va_start): Do nothing if VALIST's type is error_mark_node.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32829 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/sparc/sparc.c')
-rw-r--r-- | gcc/config/sparc/sparc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 85a3d70f38e..7c27bbc48d1 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -2938,9 +2938,10 @@ mem_min_alignment (mem, desired) completed, we already matched with proper alignments. If not running global_alloc, reload might give us unaligned pointer to local stack though. */ - if (((cfun != 0 && REGNO_POINTER_ALIGN (regno) >= desired) + if (((cfun != 0 + && REGNO_POINTER_ALIGN (regno) >= desired * BITS_PER_UNIT) || (optimize && reload_completed)) - && ((INTVAL (offset) & (desired - 1)) == 0)) + && (INTVAL (offset) & (desired - 1)) == 0) return 1; } else |