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 c++/17972


Yuck.  Unfortunately, I don't think this patch is enough to solve the
problem; what if save_expr is passed, say, the sum of two const CALL_EXPRs?
It seems that we will need to recursively search these expressions for
calls.

Also, stabilize_expr and its ilk in the C++ front end probably need similar
code.

All of which raises the question of whether unsetting TREE_SIDE_EFFECTS on
such calls was such a good idea.

Jason


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