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

Reply via email to