diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-01-13 16:30:51 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-01-13 16:30:51 +0000 |
commit | 3ff99faaa5ff7f3e0e497316efbc488cc5e0175e (patch) | |
tree | b9d880270df034b4fdb48b0a46697ac66a4ea4e9 /gcc/emit-rtl.c | |
parent | 3e179c53d291cb0090cfd02adb8a5fc12ae8a40d (diff) | |
download | gcc-3ff99faaa5ff7f3e0e497316efbc488cc5e0175e.tar.gz |
2008-01-13 Richard Guenther <rguenther@suse.de>
PR middle-end/34601
* emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
instead of TYPE_MODE to deal with calls from expand_one_error_var.
* gcc.dg/noncompile/incomplete-4.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131506 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r-- | gcc/emit-rtl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 5a2aede40dd..bef4d58f53d 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -1006,7 +1006,7 @@ set_reg_attrs_for_decl_rtl (tree t, rtx x) if (REG_P (x)) REG_ATTRS (x) = get_reg_attrs (t, byte_lowpart_offset (GET_MODE (x), - TYPE_MODE (TREE_TYPE (t)))); + DECL_MODE (t))); if (GET_CODE (x) == CONCAT) { if (REG_P (XEXP (x, 0))) |