decl2.c (import_export_decl): Remove redundant call to targetm.cxx.key_method_may_be_...
authorMike Stump <mrs@apple.com>
Fri, 3 Mar 2006 20:37:50 +0000 (20:37 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Fri, 3 Mar 2006 20:37:50 +0000 (20:37 +0000)
* decl2.c (import_export_decl): Remove redundant call to
targetm.cxx.key_method_may_be_inline ().

From-SVN: r111685

gcc/cp/ChangeLog
gcc/cp/decl2.c

index 71541e1fe56fb5a4e1bded0fa62d7622cb9b3691..f0d1301b7c57e2021a847a576c699de44a79d452 100644 (file)
@@ -1,3 +1,8 @@
+2006-03-02  Mike Stump  <mrs@apple.com>
+
+       * decl2.c (import_export_decl): Remove redundant call to
+       targetm.cxx.key_method_may_be_inline ().
+
 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
 
        * decl.c (start_decl): Use have_global_bss_p when deciding
index 9cc95b630067dc8431af59ff56120176e069ef49..b332e6e9113f35ac27082eaece2330808ed5ac29 100644 (file)
@@ -1790,8 +1790,7 @@ import_export_decl (tree decl)
                 to arrange for comdat even though
                 class_data_always_comdat is false.  */
              if (!CLASSTYPE_KEY_METHOD (class_type)
-                 || (DECL_DECLARED_INLINE_P (CLASSTYPE_KEY_METHOD (class_type))
-                     && targetm.cxx.key_method_may_be_inline ())
+                 || DECL_DECLARED_INLINE_P (CLASSTYPE_KEY_METHOD (class_type))
                  || targetm.cxx.class_data_always_comdat ())
                {
                  /* The ABI requires COMDAT linkage.  Normally, we
@@ -1832,8 +1831,7 @@ import_export_decl (tree decl)
                {
                  comdat_p = (targetm.cxx.class_data_always_comdat ()
                              || (CLASSTYPE_KEY_METHOD (type)
-                                 && DECL_DECLARED_INLINE_P (CLASSTYPE_KEY_METHOD (type))
-                                 && targetm.cxx.key_method_may_be_inline ()));
+                                 && DECL_DECLARED_INLINE_P (CLASSTYPE_KEY_METHOD (type))));
                  mark_needed (decl);
                  if (!flag_weak)
                    {