This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] fix PR middle-end/17885, gimplifing of volatile &a->b



On Oct 18, 2004, at 1:54 PM, Richard Henderson wrote:


On Mon, Oct 18, 2004 at 10:24:45AM -0400, Andrew Pinski wrote:
	* gimplify.c (gimplify_expr): Handle ADDR_EXPR when
	we have volatile types but the expression it self is
	not volatile.

Without further information, I think this is wrong. Why in the world is TREE_SIDE_EFFECTS for such an ADDR_EXPR?

Because the COMPONENT_REF has its TREE_SIDE_EFFECTS set then by recompute_tree_invarant_for_addr_expr so does the ADDR_EXPR, this might be a bug in that function though.

Thanks,
Andrew Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]