diff options
author | Richard Guenther <rguenther@suse.de> | 2010-01-01 13:56:50 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-01-01 13:56:50 +0000 |
commit | a28ff68b149819196a64a87f3e1b5bc3c4075632 (patch) | |
tree | 3c921df66e3114e29c1039db399133df37bceb08 /gcc/builtins.c | |
parent | 78542dee33b135825dab584ae041ed78fde0b118 (diff) | |
download | gcc-a28ff68b149819196a64a87f3e1b5bc3c4075632.zip gcc-a28ff68b149819196a64a87f3e1b5bc3c4075632.tar.gz gcc-a28ff68b149819196a64a87f3e1b5bc3c4075632.tar.bz2 |
re PR middle-end/42559 (ice in emit_block_move_hints with -O2)
2010-01-01 Richard Guenther <rguenther@suse.de>
PR middle-end/42559
* builtins.c (get_object_alignment): Do not use DECL_ALIGN
for LABEL_DECLs.
* gcc.c-torture/compile/pr42559.c: New testcase.
From-SVN: r155554
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index 53d74a2..d48263c 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -325,7 +325,8 @@ get_object_alignment (tree exp, unsigned int align, unsigned int max_align) } if (TREE_CODE (exp) == CONST_DECL) exp = DECL_INITIAL (exp); - if (DECL_P (exp)) + if (DECL_P (exp) + && TREE_CODE (exp) != LABEL_DECL) align = MIN (inner, DECL_ALIGN (exp)); #ifdef CONSTANT_ALIGNMENT else if (CONSTANT_CLASS_P (exp)) |