[Bug fortran/41209] New: Add full ATTRIBUTE support to gfortran (ALIGN, (WEAK)ALIAS, ...)

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Sep 1 09:35:00 GMT 2009


gfortran currently supports only STDCALL, FASTCALL and CDECL as attributes
using

  !GCC$ ATTRIBUTE <list> :: symbol

The attributes are saved as bit in the attr struct. For full attribute support,
one presumably should save the string and convert it later in trans*.c into a
TREE.

The string should then be saved in the .mod file. (That is also the reason that
one cannot directly save the attributes into a TREE.)

Issue: For STDCALL etc. we do some conformance checking for proc-pointer
assignments. That should continue to work. Maybe one needs to do further
checks.

See:
http://gcc.gnu.org/onlinedocs/gfortran/GNU-Fortran-Compiler-Directives.html
http://gcc.gnu.org/onlinedocs/gcc/Variable-Attributes.html
http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html

PR 34112 and PR 40955


-- 
           Summary: Add full ATTRIBUTE support to gfortran (ALIGN,
                    (WEAK)ALIAS, ...)
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list