X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=gcc%2Ffortran%2Ftrans-types.c;h=dca19ce90b65af49a4705e23a6e636a2ebc588da;hp=31a250d0de761e09c24a719a7723b12b6355573c;hb=f039ec372be08545c595dd57f979af85172f791a;hpb=dcff3217c8608480cbe20b16ccef7da39cec1966 diff --git a/gcc/fortran/trans-types.c b/gcc/fortran/trans-types.c index 31a250d0de7..dca19ce90b6 100644 --- a/gcc/fortran/trans-types.c +++ b/gcc/fortran/trans-types.c @@ -1793,6 +1793,9 @@ gfc_sym_type (gfc_symbol * sym) restricted); byref = 0; } + + if (sym->attr.cray_pointee) + GFC_POINTER_TYPE_P (type) = 1; } else { @@ -1808,7 +1811,7 @@ gfc_sym_type (gfc_symbol * sym) { if (sym->attr.allocatable || sym->attr.pointer) type = gfc_build_pointer_type (sym, type); - if (sym->attr.pointer) + if (sym->attr.pointer || sym->attr.cray_pointee) GFC_POINTER_TYPE_P (type) = 1; }