diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1996-01-15 14:57:49 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1996-01-15 14:57:49 -0500 |
commit | b02ab63aa48c88f269c72f2c57cc240439a425c0 (patch) | |
tree | d12dc64f7ff1d1c20b5743da2fe80ff55fcf0763 /gcc/function.c | |
parent | e20566775fb3818d9c3ab6980ad246a791d46039 (diff) | |
download | gcc-b02ab63aa48c88f269c72f2c57cc240439a425c0.zip gcc-b02ab63aa48c88f269c72f2c57cc240439a425c0.tar.gz gcc-b02ab63aa48c88f269c72f2c57cc240439a425c0.tar.bz2 |
({,round_}trampoline_address): TRAMPOLINE_ALIGNMENT is in bits, not
bytes.
From-SVN: r10993
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/function.c b/gcc/function.c index 66ff420..6d27d2d 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -1,5 +1,5 @@ /* Expands front end tree to back end RTL for GNU C-Compiler - Copyright (C) 1987, 88, 89, 91-94, 1995 Free Software Foundation, Inc. + Copyright (C) 1987, 88, 89, 91-95, 1996 Free Software Foundation, Inc. This file is part of GNU CC. @@ -4529,7 +4529,8 @@ trampoline_address (function) /* If rounding needed, allocate extra space to ensure we have TRAMPOLINE_SIZE bytes left after rounding up. */ #ifdef TRAMPOLINE_ALIGNMENT -#define TRAMPOLINE_REAL_SIZE (TRAMPOLINE_SIZE + TRAMPOLINE_ALIGNMENT - 1) +#define TRAMPOLINE_REAL_SIZE \ + (TRAMPOLINE_SIZE + (TRAMPOLINE_ALIGNMENT / BITS_PER_UNIT) - 1) #else #define TRAMPOLINE_REAL_SIZE (TRAMPOLINE_SIZE) #endif @@ -4577,10 +4578,10 @@ round_trampoline_addr (tramp) /* Round address up to desired boundary. */ rtx temp = gen_reg_rtx (Pmode); temp = expand_binop (Pmode, add_optab, tramp, - GEN_INT (TRAMPOLINE_ALIGNMENT - 1), + GEN_INT (TRAMPOLINE_ALIGNMENT / BITS_PER_UNIT - 1), temp, 0, OPTAB_LIB_WIDEN); tramp = expand_binop (Pmode, and_optab, temp, - GEN_INT (- TRAMPOLINE_ALIGNMENT), + GEN_INT (- TRAMPOLINE_ALIGNMENT / BITS_PER_UNIT), temp, 0, OPTAB_LIB_WIDEN); #endif return tramp; |