public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "bryner at brianryner dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/13057] [3.3/3.4 Regression] regparm attribute not applied to destructor
Date: Sun, 16 Nov 2003 03:59:00 -0000	[thread overview]
Message-ID: <20031116035927.6731.qmail@sources.redhat.com> (raw)
In-Reply-To: <20031114211618.13057.bryner@brianryner.com>


------- 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


  parent reply	other threads:[~2003-11-16  3:59 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-14 21:16 [Bug c++/13057] New: " bryner at brianryner dot com
2003-11-14 21:16 ` [Bug c++/13057] " bryner at brianryner dot com
2003-11-14 21:20 ` bryner at brianryner dot com
2003-11-14 21:20 ` bryner at brianryner dot com
2003-11-15  2:58 ` [Bug c++/13057] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
2003-11-16  2:22 ` bryner at brianryner dot com
2003-11-16  3:59 ` bryner at brianryner dot com [this message]
2004-01-06  1:37 ` mmitchel at gcc dot gnu dot org
2004-01-06  2:26 ` cvs-commit at gcc dot gnu dot org
2004-01-06  2:28 ` [Bug c++/13057] [3.3 " mmitchel at gcc dot gnu dot org
2004-01-06  2:28 ` mmitchel at gcc dot gnu dot org
2004-01-06 16:30 ` gdr at integrable-solutions dot net
2004-01-21  3:41 ` dhazeghi at yahoo dot com
2004-01-21  5:52 ` gdr at gcc dot gnu dot org
2004-01-21  5:52 ` cvs-commit at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031116035927.6731.qmail@sources.redhat.com \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).