diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-12-17 14:36:43 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-12-17 14:36:43 +0000 |
commit | 0ea953349254b9abe47595a9326bf757a2a9e8e9 (patch) | |
tree | 6530b30bab4859c15f595db20fdb4d4295ef1b94 /gcc/expr.c | |
parent | 97b75cb14e6b67ea6872fddf08abcfbb129d5e2d (diff) | |
download | gcc-0ea953349254b9abe47595a9326bf757a2a9e8e9.tar.gz |
2009-12-17 Richard Guenther <rguenther@suse.de>
PR middle-end/42397
* builtins.c (get_object_alignment): Properly deal with
a CONST_DECL base.
* expr.c (emit_block_move_hints): Assert the alignment makes
sense.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155316 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expr.c')
-rw-r--r-- | gcc/expr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/expr.c b/gcc/expr.c index 13ae5fffc9f..d1cd815dd9b 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -1194,6 +1194,7 @@ emit_block_move_hints (rtx x, rtx y, rtx size, enum block_op_methods method, } align = MIN (MEM_ALIGN (x), MEM_ALIGN (y)); + gcc_assert (align >= BITS_PER_UNIT); gcc_assert (MEM_P (x)); gcc_assert (MEM_P (y)); |