Commit fa78c0c1 by Richard Guenther Committed by Richard Biener

re PR c/39712 (type mismatch in address expression)

2009-04-11  Richard Guenther  <rguenther@suse.de>

	PR c/39712
	* c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
	address expressions.

	* gcc.dg/pr39712.c: New testcase.

From-SVN: r145950
parent 4d722130
2009-04-11 Richard Guenther <rguenther@suse.de>
PR c/39712
* c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
address expressions.
2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
* config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
......
......@@ -201,7 +201,8 @@ c_gimplify_expr (tree *expr_p, gimple_seq *pre_p ATTRIBUTE_UNUSED,
ADDR_EXPR instead and wrap a conversion around it. */
if (code == ADDR_EXPR
&& TREE_CODE (TREE_TYPE (TREE_OPERAND (*expr_p, 0))) == ARRAY_TYPE
&& TREE_CODE (TREE_TYPE (TREE_TYPE (*expr_p))) != ARRAY_TYPE)
&& !lang_hooks.types_compatible_p (TREE_TYPE (TREE_TYPE (*expr_p)),
TREE_TYPE (TREE_OPERAND (*expr_p, 0))))
{
tree type = TREE_TYPE (*expr_p);
TREE_TYPE (*expr_p)
......
2009-04-10 Richard Guenther <rguenther@suse.de>
PR c/39712
* gcc.dg/pr39712.c: New testcase.
2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
PR c++/28301
......
/* { dg-do compile } */
int is_table[2][16];
int is_table_lsf[2][2][16];
void compute_stereo()
{
int (*is_tab)[16];
is_tab = is_table;
}
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