This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13057] New: 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: 14 Nov 2003 21:16:20 -0000
- Subject: [Bug c++/13057] New: regparm attribute not applied to destructor
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
It appears that giving the regparm(1) attribute on a destructor does not cause
it to pass the |this| pointer in a register. However, it will pass it in a
register if I give -mregparm=1 on the command line.
This works fine for normal methods, so it seems to be specific to destructors.
--
Summary: regparm attribute not applied to destructor
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bryner at brianryner dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13057