Commit 726612d2 by Richard Guenther Committed by Richard Biener

re PR c/34601 (ICE with undefined enum)

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.

From-SVN: r131506
parent 51134e52
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
......
......@@ -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)))
......
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
void foo()
{
enum E e; /* { dg-error "storage size" } */
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment