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]

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


The problem here is that we don't handle taking the address of
volatile pointers to structs' members, aka we don't handle
when we have volatile types but the expression it self is not
volatile. This fixes the problem by handling them.

OK? Bootstrapped and tested on powerpc-darwin with no regressions.

Thanks,
Andrew Pinski

ChangeLog:
	* gimplify.c (gimplify_expr): Handle ADDR_EXPR when
	we have volatile types but the expression it self is
	not volatile.

testsuite/ChangeLog:
	* gcc.dg/pr17885.c: New test.

Attachment: temp.diff.txt
Description: Text document


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