This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/33199] [4.3 Regression] tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc
- From: "hjl at lucon dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Aug 2007 20:39:56 -0000
- Subject: [Bug middle-end/33199] [4.3 Regression] tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc
- References: <bug-33199-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from hjl at lucon dot org 2007-08-27 20:39 -------
This patch:
Index: decl.c
===================================================================
--- decl.c (revision 127763)
+++ decl.c (working copy)
@@ -11525,6 +11525,9 @@ finish_function (int flags)
&& !DECL_REPLACEABLE_P (fndecl))
TREE_NOTHROW (fndecl) = 1;
+ if (varargs_function_p (fndecl))
+ DECL_UNINLINABLE (fndecl) = 1;
+
/* This must come after expand_function_end because cleanups might
have declarations (from inline functions) that need to go into
this function's blocks. */
also works on the testcase. I don't know if it is correct.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33199