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: Don't use create_tmp_var for static vars


Bernd Schmidt wrote:
> I discovered that create_tmp_var is used in the gfortran frontend to
> create static variables. IMO the function is not intended to do this,
> and it causes problems for a modification I need to make to it which
> assumes that it only creates local variables. So I've made a patch
> to make fortran directly use build_decl instead in these cases.
>
> The following was bootstrapped and tested on x86_64-linux. Ok?

I don't know whether create_tmp_var is/was supposed to also handle
static variables. In any case, the modification looks fine to me.

Tobias

PS: I am looking forward to the offloading support, including your PTX
support.


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