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 c/18070] New: Contradicting function attributes


This is a call for opinions on contradicting function attributes like giving
both cdecl and stdcall or both always_inline and noinline.

Somewhat related to bug18069 (Contradicting type and variable attributes) I've
seen that contradicting inline attributes give varying results/warnings/errors,
depending on gcc verision, C vs. C++ and optimization flags. 

At the very least the documentation needs some clarification. Using conflicting
calling conventions (both cdecl and stdcall) is an error IMHO.

Furthermore I have not examined how changes in definitions vs. declarations are
handled (i.e. protypes, multiple conflicting prototypes, conflicting
implementation).

-- 
           Summary: Contradicting function attributes
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: markus at oberhumer dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i386-linux-gnu


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


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