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
+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.
+
2008-01-13 Uros Bizjak <ubizjak@gmail.com>
* gcse.c (cprop_jump): Call validate_unshare_change instead of
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)))
+2008-01-13 Richard Guenther <rguenther@suse.de>
+
+ PR middle-end/34601
+ * gcc.dg/noncompile/incomplete-4.c: New testcase.
+
2008-01-13 Jan Hubicka <jh@suse.cz>
PR middle-end/32135
--- /dev/null
+void foo()
+{
+ enum E e; /* { dg-error "storage size" } */
+}