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: Fix latent bug in add_referenced_vars


Jan Hubicka wrote:

Hmm, I am not sure how to put this down clearly.
I am trying to explain that we want to walk initializers becuase of the
case where *p  originally initialized to &foo is folded into foo you
pointed out and that this transformation can not apply for non-constant
public variables.

How about "It's not necessary to walk the initial value of non-constant public variables because it cannot be propagated by the optimizers."



Diego.



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