From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15660 invoked by alias); 1 Sep 2009 17:39:37 -0000 Received: (qmail 15615 invoked by uid 48); 1 Sep 2009 17:39:23 -0000 Date: Tue, 01 Sep 2009 17:39:00 -0000 Message-ID: <20090901173923.15614.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/41209] Add full ATTRIBUTE support to gfortran (ALIGN, (WEAK)ALIAS, ...) In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "burnus at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-09/txt/msg00068.txt.bz2 ------- Comment #2 from burnus at gcc dot gnu dot org 2009-09-01 17:39 ------- Created an attachment (id=18463) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18463&action=view) Draft patch - first steps but incomplete & will not work Draft patch (not really work yet). TODO: a) Copy attributes properly and free them at the end b) Write/read them from the .mod file c) Use an ENUM for stdcall etc.? Requires a check whether they are already set but those options are orthogonal thus that makes sense. TODO 2: Check whether derived types are properly handled: bind(C) vs. sequence vs. extensible types. And attributes to components vs. attributes to the type as a whole. Plus checking whether we set some attributes by default which clash with user settings. Plus: Are additional front-end checks needed besides stdcall etc. conformance for proc-pointers? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41209