This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix for PR fortran/21375
Tobias Schlüter wrote:
> We should
> probably add a global variable gfc_pint4_type_node for this along the other
> type nodes, and move that code out of gfc_build_io_library_fndecls, but I'm
> fine if you put it in a local variable.
Oh, I misremembered, actually gfc_int4_type_node is not global either. Only
the following are:
extern GTY(()) tree gfc_array_index_type;
extern GTY(()) tree gfc_character1_type_node;
extern GTY(()) tree ppvoid_type_node;
extern GTY(()) tree pvoid_type_node;
extern GTY(()) tree pchar_type_node;
So making it a local variable is completely fine.
Thanks,
- Tobi