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] |
Hi, this patch fixes the bug described at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15774 in bugzilla. It takes care that for function pointer types also the calling-convention modifying attributes can be displayed. I added an implementation for the i386 architecture. Tested for i686-pc-cygwin, i686-pc-mingw32, and x86_64-w64-mingw32. ChangeLog 2010-12-22 Kai Tietz PR c++/15774 * c-family/c-pretty-print.c: Add target.h include. (pp_c_specifier_qualifier_list): Call pp_c_attributes_calling_convention for (*). (pp_c_attributes_calling_convention): New. * c-family/c-pretty-print.h (pp_c_attributes_calling_convention): New prototype. * cp/error.c (dump_type_prefix): Call pp_c_attributes_calling_convention for (*). * config/i386/i386.c (ix86_attribute_affects_calling_convention): New hook. (TARGET_ATTRIBUTE_AFFECTS_CALLING_CONVENTION): Define. * doc/tm.texi.in (TARGET_ATTRIBUTE_AFFECTS_CALLING_CONVENTION): Add. * doc/tm.texi: Regenerated. Ok for apply? Regards, Kai
Attachment:
dispcallcvt.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |