re PR fortran/51207 ([OOP] Mark __def_init_... as FL_PARAMETER)
authorTobias Burnus <burnus@net-b.de>
Sat, 19 Nov 2011 09:26:33 +0000 (10:26 +0100)
committerTobias Burnus <burnus@gcc.gnu.org>
Sat, 19 Nov 2011 09:26:33 +0000 (10:26 +0100)
commitcf651ca2e559c5f56f23764f1c90108c52015ea0
tree03ad52bf6cb39e5e03380e6202c1d82ec366d4bb
parentea5cbe6161d115541b7b1dee24d6f07b269cb1bb
re PR fortran/51207 ([OOP] Mark __def_init_... as FL_PARAMETER)

2011-11-19  Tobias Burnus  <burnus@net-b.de>

        PR fortran/51207
        * class.c (gfc_find_derived_vtab): Mark __def_init as PARAMETER
        and hence as TREE_READONLY; add subroutine attribute to
        __copy_ procedure.

        PR fortran/50640
        * trans.h (GFC_DECL_PUSH_TOPLEVEL): New DECL_LANG_FLAG_7.
        * trans-decl.c (gfc_get_symbol_decl): Mark __def_init and vtab
        as GFC_DECL_PUSH_TOPLEVEL.
        (gfc_generate_function_code): If GFC_DECL_PUSH_TOPLEVEL, push it there.
        (build_function_decl): Push __copy_ procedure to the toplevel.

From-SVN: r181505
gcc/fortran/ChangeLog
gcc/fortran/class.c
gcc/fortran/trans-decl.c
gcc/fortran/trans.h