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: [tree-ssa] fix opt/13798


On Jan 28, 2004, at 4:33 AM, Jan Hubicka wrote:
I think the proper sollution would be to simply deal with local static
variables as if they were global by frontends, but I didn't get across
to implement this yet.

Please don't do this for scalars. I'm looking at the reverse transformation,
changing local statics to automatics. Should be a win in the rare cases
where it's possible:
- Static's address is not taken
- Static is stored into before being loaded, on all paths through the code
- Function is a leaf whose address is not taken. Or it's Fortran or other
language that doesn't have recursion. (Or you can figure out from the
callgraph it's not called recursively, even indirectly, but that's harder.)
Am I missing anything?



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