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 tree-optimization/21407


Daniel Berlin wrote:

I only ask this question because it has optimization implications.  if
it's only legal to do this when you pass a pointer to a structure that
is a member, and not a pointer to any old type member, i can simply
modify the code to take this into account.

I don't think that makes any difference. It's just as valid or invalid either way. Of course, if you can prove that the callee doesn't do any pointer arithmetic on the pointer, and doesn't let the pointer escape (transitive closure, yada yada), then I think you're OK, and there's no controversy.


--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304


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