Commit 04487a2f by Jakub Jelinek Committed by Jakub Jelinek

re PR middle-end/36125 (FAIL: 26_numerics/complex/13450.cc: ICE in…

re PR middle-end/36125 (FAIL: 26_numerics/complex/13450.cc: ICE in verify_gimple_expr, at tree-cfg.c:3962)

	PR middle-end/36125
	* function.c (gimplify_parameters): For callee copies parameters,
	move TREE_ADDRESSABLE flag from the PARM_DECL to the local copy.

	* gcc.c-torture/compile/pr36125.c: New test.

From-SVN: r141848
parent 2d727f75
2008-11-14 Jakub Jelinek <jakub@redhat.com>
PR middle-end/36125
* function.c (gimplify_parameters): For callee copies parameters,
move TREE_ADDRESSABLE flag from the PARM_DECL to the local copy.
2008-11-13 Thomas Schwinge <tschwinge@gnu.org>
PR target/28102
......
......@@ -3265,6 +3265,14 @@ gimplify_parameters (void)
{
local = create_tmp_var (type, get_name (parm));
DECL_IGNORED_P (local) = 0;
/* If PARM was addressable, move that flag over
to the local copy, as its address will be taken,
not the PARMs. */
if (TREE_ADDRESSABLE (parm))
{
TREE_ADDRESSABLE (parm) = 0;
TREE_ADDRESSABLE (local) = 1;
}
}
else
{
......
2008-11-14 Jakub Jelinek <jakub@redhat.com>
PR middle-end/36125
* gcc.c-torture/compile/pr36125.c: New test.
2008-11-13 Jason Merrill <jason@redhat.com>
PR c++/37932
......
/* PR middle-end/36125 */
extern void bar (long double *);
int
foo (long double x)
{
bar (&x);
return 0;
}
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