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]

Re: PATCH PR c++/13989 and PR c++/9844



On Sep 21, 2004, at 10:56 PM, Mark Mitchell wrote:


I think that you should do the attribute processing in grokfndecl, not in check_classfn. There's nothing special about member functions from this point of view; we should be processing attributes for non-member functions and member functions in the same way. Where do non-member functions get their attributes attached? Is that too late for member functions? If so, we should maybe move the processing earlier.

Thanks,


Here is the revised patch. Bootstrapped, dejagnu tested on apple-ppc-darwin.


OK for mainline?

- Thanks, fariborz

ChangeLog:

2004-09-21 Fariborz Jahanian <fjahanian@apple.com>
        PR c++/13989
        PR c++/9844

* cp/decl.c (grokfndecl): Add new argument "attrlist", use it
to call cplus_decl_attributes.
(start_function): Remove call to cplus_decl_attributes.
* tree.c (reconstruct_complex_type): Remove extra "this".
* cp/cvt.c (ocp_convert): Add support to use type conversion
function to vector type.
* cp/parser.c (cp_parser_conversion_type_id): Add attributes, if any,
to the parsed type.
* config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
Add V4SFmode to case statement.


Attachment: fsf-patch-cplus-vecattr.txt
Description: Text document



Attachment: attribute-test-1.C
Description: Text document

Attachment: attribute-test-2.C
Description: Text document



Attachment: attribute-test-3.C
Description: Text document

Attachment: attribute-test-4.C
Description: Text document





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