aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl2.c
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2006-03-03 20:37:50 +0000
committerMike Stump <mrs@gcc.gnu.org>2006-03-03 20:37:50 +0000
commit67a70df65b693ab9fe30ed39acc765c7d354038c (patch)
tree2f5d08a31d08d8e7068816dbce21313f8c50052f /gcc/cp/decl2.c
parentd07548f9cab534c99961c42222c92fa1201fc368 (diff)
downloadgcc-67a70df65b693ab9fe30ed39acc765c7d354038c.zip
gcc-67a70df65b693ab9fe30ed39acc765c7d354038c.tar.gz
gcc-67a70df65b693ab9fe30ed39acc765c7d354038c.tar.bz2
decl2.c (import_export_decl): Remove redundant call to targetm.cxx.key_method_may_be_inline ().
* decl2.c (import_export_decl): Remove redundant call to targetm.cxx.key_method_may_be_inline (). From-SVN: r111685
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r--gcc/cp/decl2.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index 9cc95b6..b332e6e 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -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)
{