This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug fortran/17091] New: gfortran MAIN__ symbol not marked TREE_PUBLIC


When gfortran synthesizes the MAIN__ symbol, the decl is not receiving the
attribute TREE_PUBLIC, which is causing problems on AIX because the symbol is
not being globalized.

(gdb) break assemble_start_function
Breakpoint 5 at 0x10103808: file /farm/dje/src/src/gcc/varasm.c, line 1184.
(gdb) run foo.f90
 MAIN__

Breakpoint 5, assemble_start_function (decl=0x3005f380, 
    fnname=0x200c4855 "MAIN__") at /farm/dje/src/src/gcc/varasm.c:1184
(gdb) print decl->common.public_flag
$2 = 0

-- 
           Summary: gfortran MAIN__ symbol not marked TREE_PUBLIC
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dje at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-ibm-aix5.2.0.0
  GCC host triplet: powerpc-ibm-aix5.2.0.0
GCC target triplet: powerpc-ibm-aix5.2.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17091


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