This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13057] [3.3/3.4 Regression] regparm attribute not applied to destructor
- From: "bryner at brianryner dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Nov 2003 03:59:27 -0000
- Subject: [Bug c++/13057] [3.3/3.4 Regression] regparm attribute not applied to destructor
- References: <20031114211618.13057.bryner@brianryner.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bryner at brianryner dot com 2003-11-16 03:59 -------
(In reply to comment #5)
> attribute(s) attached to it. For the destructor, however, fntype is neither the
> node passed to decl_attributes nor the clone that was made. Whatever it is, it
> has a null attributes pointer, so no parameters are passed in registers.
>
It looks like the node that init_cumulative_args() is called with for the
destructor call is allocated from here:
#1 0x082dc86b in make_node (code=METHOD_TYPE) at ../../gcc/gcc/tree.c:273
#2 0x082dd061 in build_method_type_directly (basetype=0x58,
rettype=0x4022ac3c, argtypes=0x4022d94c) at ../../gcc/gcc/tree.c:3899
#3 0x08063dc2 in grokdeclarator (declarator=0x402f6640, declspecs=0x0,
decl_context=FIELD, initialized=0, attrlist=0xbfffe570)
at ../../gcc/gcc/cp/decl.c:8073
#4 0x0808651d in grokfield (declarator=0x58, declspecs=0x10, init=0x0,
asmspec_tree=0x0, attrlist=0x402ec9d8) at ../../gcc/gcc/cp/decl2.c:874
This node does not get the destructor's attributes put onto it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13057