diff options
author | Nigel Stephens <nigel@mips.com> | 2007-10-15 20:01:26 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2007-10-15 20:01:26 +0000 |
commit | adb417d78cd7c3d95622e82091b6fa5932c08c3d (patch) | |
tree | c2ff86d958c2e4c327dcc65e20c0238c875f86bb /gcc | |
parent | 9fd25b5cd5a8ed9de3ce735c041fe970059551a7 (diff) | |
download | gcc-adb417d78cd7c3d95622e82091b6fa5932c08c3d.zip gcc-adb417d78cd7c3d95622e82091b6fa5932c08c3d.tar.gz gcc-adb417d78cd7c3d95622e82091b6fa5932c08c3d.tar.bz2 |
mips.h (LOCAL_ALIGNMENT): Define.
gcc/
2007-10-15 Nigel Stephens <nigel@mips.com>
* config/mips/mips.h (LOCAL_ALIGNMENT): Define.
From-SVN: r129368
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/mips/mips.h | 8 |
2 files changed, 11 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4ba02e4..38509ae 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2007-10-15 Nigel Stephens <nigel@mips.com> + + * config/mips/mips.h (LOCAL_ALIGNMENT): Define. + 2007-10-15 Jakub Jelinek <jakub@redhat.com> PR tree-optimization/33136 diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index 534e88b..952093a 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) |