From f676971a92dcc163394d15c819e904cbed2438d6 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Tue, 24 Aug 2004 00:30:52 +0000 Subject: defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro. 2004-08-23 Eric Christopher * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro. * system.h (VECTOR_MODE_SUPPORTED_P): Poison. * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define. * target.h: Ditto. * hooks.h: Include machmode.h. (hook_bool_mode_false): Declare. * hooks.c (hook_bool_mode_false): Define. * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p. * stor-layout.c (layout_type): Ditto. * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function. Define to target macro. * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete. * config/arm/arm.c: Ditto. Use. * config/arm/arm.h: Ditto. * config/arm/arm-protos.h: Ditto. * config/i386/i386.c: Ditto. * config/i386/i386.h: Ditto. * config/rs6000/rs6000.c: Ditto. * config/rs6000/rs6000.h: Ditto. * config/sh/sh.c: Ditto. * config/sh/sh.h: Ditto. * config/sh/sh-protos.h: Ditto. * config/sh/sh.md: Use. * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P to TARGET_VECTOR_MODE_SUPPORTED_P. 2004-08-23 Eric Christopher * trans-types.c (gfc_type_for_mode): Remove VECTOR_TYPE_SUPPORTED_P usage. Use build_vector_type_for_mode for vector types. From-SVN: r86453 --- gcc/stor-layout.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'gcc/stor-layout.c') diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 7f188f27839..acbba553547 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -384,7 +384,7 @@ layout_decl (tree decl, unsigned int known_align) enum machine_mode xmode = mode_for_size_tree (DECL_SIZE (decl), MODE_INT, 1); - if (xmode != BLKmode + if (xmode != BLKmode && (known_align == 0 || known_align >= GET_MODE_ALIGNMENT (xmode))) { @@ -1559,7 +1559,7 @@ layout_type (tree type) for (; mode != VOIDmode ; mode = GET_MODE_WIDER_MODE (mode)) if (GET_MODE_NUNITS (mode) == nunits && GET_MODE_INNER (mode) == innermode - && VECTOR_MODE_SUPPORTED_P (mode)) + && targetm.vector_mode_supported_p (mode)) break; /* For integers, try mapping it to a same-sized scalar mode. */ @@ -1977,7 +1977,7 @@ set_min_and_max_values_for_integral_type (tree type, if (is_unsigned) { min_value = build_int_cst (type, 0, 0); - max_value + max_value = build_int_cst (type, precision - HOST_BITS_PER_WIDE_INT >= 0 ? -1 : ((HOST_WIDE_INT) 1 << precision) - 1, precision - HOST_BITS_PER_WIDE_INT > 0 @@ -1988,14 +1988,14 @@ set_min_and_max_values_for_integral_type (tree type, } else { - min_value + min_value = build_int_cst (type, (precision - HOST_BITS_PER_WIDE_INT > 0 ? 0 : (HOST_WIDE_INT) (-1) << (precision - 1)), (((HOST_WIDE_INT) (-1) << (precision - HOST_BITS_PER_WIDE_INT - 1 > 0 ? precision - HOST_BITS_PER_WIDE_INT - 1 - : 0)))); + : 0)))); max_value = build_int_cst (type, (precision - HOST_BITS_PER_WIDE_INT > 0 @@ -2026,7 +2026,7 @@ fixup_signed_type (tree type) if (precision > HOST_BITS_PER_WIDE_INT * 2) precision = HOST_BITS_PER_WIDE_INT * 2; - set_min_and_max_values_for_integral_type (type, precision, + set_min_and_max_values_for_integral_type (type, precision, /*is_unsigned=*/false); /* Lay out the type: set its alignment, size, etc. */ @@ -2049,8 +2049,8 @@ fixup_unsigned_type (tree type) precision = HOST_BITS_PER_WIDE_INT * 2; TYPE_UNSIGNED (type) = 1; - - set_min_and_max_values_for_integral_type (type, precision, + + set_min_and_max_values_for_integral_type (type, precision, /*is_unsigned=*/true); /* Lay out the type: set its alignment, size, etc. */ -- cgit v1.2.1