This is the mail archive of the gcc-patches@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]

[patch]: Don't warn for w64 about calling-convention attributes on methods


Hello,

For w64 ABI the calling-conventions stdcall, fastcal, etc are present
and have to be accepted silently. This patch allows to specify on
class methods those attributes without getting warnings.

ChangeLog

2010-04-06  Kai Tietz  <kai.tietz@onevision.com>

        * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
calling convention
        attributes on METHOD_TYPEs for w64 ABI, too.

Tested for i686-pc-mingw32 and for x86_64-pc-mingw32. I'll apply it
tomorrow, if there are no objections.

Regards,
Kai

-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination

Attachment: w64attribute_nowarn.diff
Description: Binary data


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