This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/41536] always_inline does not work always with constructors
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Oct 2009 17:04:41 -0000
- Subject: [Bug c++/41536] always_inline does not work always with constructors
- References: <bug-41536-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2009-10-01 17:04 -------
Here is the fix I am working for:
Index: optimize.c
===================================================================
--- optimize.c (revision 152380)
+++ optimize.c (working copy)
@@ -199,6 +199,7 @@ maybe_clone_body (tree fn)
DECL_VISIBILITY (clone) = DECL_VISIBILITY (fn);
DECL_VISIBILITY_SPECIFIED (clone) = DECL_VISIBILITY_SPECIFIED (fn);
DECL_DLLIMPORT_P (clone) = DECL_DLLIMPORT_P (fn);
+ DECL_ATTRIBUTES (clone) = DECL_ATTRIBUTES (fn);
/* Adjust the parameter names and locations. */
parm = DECL_ARGUMENTS (fn);
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-10-01 17:04:40
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41536