diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2000-02-24 10:07:32 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2000-02-24 10:07:32 +0000 |
commit | 36c265b175b63f894eb3e2e4ade8eb183a28855d (patch) | |
tree | 962fb4d7ff5222127ff66ea4b5030cebc44cda72 /gcc/machmode.h | |
parent | da3a471976d248b4a54e90ffaf6f0e264b687737 (diff) | |
download | gcc-36c265b175b63f894eb3e2e4ade8eb183a28855d.zip gcc-36c265b175b63f894eb3e2e4ade8eb183a28855d.tar.gz gcc-36c265b175b63f894eb3e2e4ade8eb183a28855d.tar.bz2 |
machmode.h (get_mode_alignment): Declare.
* machmode.h (get_mode_alignment): Declare.
(GET_MODE_ALIGNMENT): Call it.
* stor-layout.c (get_mode_alignment): New function. Make
sure alignment is always power of 2.
From-SVN: r32134
Diffstat (limited to 'gcc/machmode.h')
-rw-r--r-- | gcc/machmode.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/machmode.h b/gcc/machmode.h index 1f2fb2b..702e209 100644 --- a/gcc/machmode.h +++ b/gcc/machmode.h @@ -125,9 +125,9 @@ extern enum machine_mode get_best_mode PARAMS ((int, int, unsigned int, /* Determine alignment, 1<=result<=BIGGEST_ALIGNMENT. */ -#define GET_MODE_ALIGNMENT(MODE) \ - (unsigned int) MIN (BIGGEST_ALIGNMENT, \ - MAX (1, (GET_MODE_UNIT_SIZE (MODE) * BITS_PER_UNIT))) +extern unsigned get_mode_alignment PARAMS ((enum machine_mode)); + +#define GET_MODE_ALIGNMENT(MODE) get_mode_alignment (MODE) /* For each class, get the narrowest mode in that class. */ |