aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/mips
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2002-05-16 00:48:52 -0400
committerJason Merrill <jason@gcc.gnu.org>2002-05-16 00:48:52 -0400
commitff48be5c7926b0a806d99a63500e5937601f6865 (patch)
treed488aa103427f298f243322a5f33bd64a0eed7b9 /gcc/config/mips
parent57cb4fe5b89460fd505d84bb85303e8c40d20fa7 (diff)
downloadgcc-ff48be5c7926b0a806d99a63500e5937601f6865.zip
gcc-ff48be5c7926b0a806d99a63500e5937601f6865.tar.gz
gcc-ff48be5c7926b0a806d99a63500e5937601f6865.tar.bz2
rtti.c (get_tinfo_decl): Don't call comdat_linkage.
* cp/rtti.c (get_tinfo_decl): Don't call comdat_linkage. Do set DECL_COMDAT. (synthesize_tinfo_var): Take the public decl. (create_real_tinfo_var): Likewise. Check DECL_COMDAT. (emit_tinfo_decl): Adjust. Call import_export_decl. * cp/decl2.c (import_export_decl): Simplify tinfo decl handling. * config/mips/mips.c (mips_output_external): Don't do sdata optimization for a variable with DECL_COMDAT set. From-SVN: r53506
Diffstat (limited to 'gcc/config/mips')
-rw-r--r--gcc/config/mips/mips.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index d523e13..72f3325 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -6035,6 +6035,7 @@ mips_output_external (file, decl, name)
if (TARGET_GP_OPT
&& TREE_CODE (decl) != FUNCTION_DECL
+ && !DECL_COMDAT (decl)
&& (len = int_size_in_bytes (TREE_TYPE (decl))) > 0
&& ((section_name = DECL_SECTION_NAME (decl)) == NULL
|| strcmp (TREE_STRING_POINTER (section_name), ".sbss") == 0