Backport from mainline:
2010-08-09 Richard Guenther <rguenther@suse.de>
PR middle-end/44632
* function.c (gimplify_parameters): Do not clear addressable
bit of the original parameter.
From-SVN: r163285
+2010-08-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
+
+ Backport from mainline:
+ 2010-08-09 Richard Guenther <rguenther@suse.de>
+
+ PR middle-end/44632
+ * function.c (gimplify_parameters): Do not clear addressable
+ bit of the original parameter.
+
2010-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Revert:
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. */
+ not the PARMs. Keep the parms address taken
+ as we'll query that flag during gimplification. */
if (TREE_ADDRESSABLE (parm))
- {
- TREE_ADDRESSABLE (parm) = 0;
- TREE_ADDRESSABLE (local) = 1;
- }
+ TREE_ADDRESSABLE (local) = 1;
}
else
{