public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/41209]  New: Add full ATTRIBUTE support to gfortran (ALIGN, (WEAK)ALIAS, ...)
@ 2009-09-01  9:35 burnus at gcc dot gnu dot org
  2009-09-01 13:30 ` [Bug fortran/41209] " burnus at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-09-01  9:35 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <bug-41209-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2013-08-28  6:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-01  9:35 [Bug fortran/41209] New: Add full ATTRIBUTE support to gfortran (ALIGN, (WEAK)ALIAS, ...) burnus at gcc dot gnu dot org
2009-09-01 13:30 ` [Bug fortran/41209] " burnus at gcc dot gnu dot org
2009-09-01 17:39 ` burnus at gcc dot gnu dot org
2009-12-04 23:33 ` dfranke at gcc dot gnu dot org
2010-02-18 16:19 ` burnus at gcc dot gnu dot org
2010-08-24 14:38 ` burnus at gcc dot gnu dot org
     [not found] <bug-41209-4@http.gcc.gnu.org/bugzilla/>
2011-06-10 10:17 ` roucaries.bastien+bugs at gmail dot com
2011-06-22  5:18 ` stevenj at alum dot mit.edu
2011-09-11 14:25 ` tkoenig at gcc dot gnu.org
2013-08-28  6:34 ` burnus at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).