This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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: PR40011 -fwhole-file problems


Dear Richard,

Thank you for your response to this - I am very pleased that you
continue to take an interest in gfortran.

> The inliner is perfectly capable of inlining functions with static
> variables. ?Likely GFortran messes up the flags for the static
> vars so they get copied during inlining (which is what you see above,
> use -uid on the dump flag to see the DECL uids).

How does one deal with this?  By putting TREE_STATIC variables in
global scope?  I could not immediately discern from tree.def or tree.h
the sense in which gfortran messes up the flags.

Cheers

Paul

-- 
The knack of flying is learning how to throw yourself at the ground and miss.
       --Hitchhikers Guide to the Galaxy


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