From: Nigel Stephens Date: Mon, 15 Oct 2007 20:01:26 +0000 (+0000) Subject: mips.h (LOCAL_ALIGNMENT): Define. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=adb417d78cd7c3d95622e82091b6fa5932c08c3d;p=gcc.git mips.h (LOCAL_ALIGNMENT): Define. gcc/ 2007-10-15 Nigel Stephens * config/mips/mips.h (LOCAL_ALIGNMENT): Define. From-SVN: r129368 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4ba02e47fcb..38509ae210e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2007-10-15 Nigel Stephens + + * config/mips/mips.h (LOCAL_ALIGNMENT): Define. + 2007-10-15 Jakub Jelinek PR tree-optimization/33136 diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index 534e88b36e6..952093a4b0c 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -1331,7 +1331,13 @@ extern enum mips_code_readable_setting mips_code_readable; || TREE_CODE (TYPE) == UNION_TYPE \ || TREE_CODE (TYPE) == RECORD_TYPE)) ? BITS_PER_WORD : (ALIGN)) - +/* We need this for the same reason as DATA_ALIGNMENT, namely to cause + character arrays to be word-aligned so that `strcpy' calls that copy + constants to character arrays can be done inline, and 'strcmp' can be + optimised to use word loads. */ +#define LOCAL_ALIGNMENT(TYPE, ALIGN) \ + DATA_ALIGNMENT (TYPE, ALIGN) + #define PAD_VARARGS_DOWN \ (FUNCTION_ARG_PADDING (TYPE_MODE (type), type) == downward)