This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/18070] New: Contradicting function attributes
- From: "markus at oberhumer dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Oct 2004 05:22:26 -0000
- Subject: [Bug c/18070] New: Contradicting function attributes
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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