--- gcc/cp/rtti.c.orig	2012-11-13 00:47:06.000000000 +0900
+++ gcc/cp/rtti.c	2012-11-13 00:48:19.000000000 +0900
@@ -446,7 +446,7 @@
       TREE_PUBLIC (d) = 1;
       if (flag_weak || !typeinfo_in_lib_p (d))
 	comdat_linkage (d);
-      DECL_ASSEMBLER_NAME (d) = DECL_NAME (d);
+      SET_DECL_ASSEMBLER_NAME (d, DECL_NAME (d));
       cp_finish_decl (d, NULL_TREE, NULL_TREE, 0);
 
       pushdecl_top_level (d);
@@ -1343,10 +1343,10 @@
     if (flag_new_abi)
       /* The new ABI specifies the external name of the string
 	 containing the type's name.  */
-      DECL_ASSEMBLER_NAME (name_decl) 
-	= mangle_typeinfo_string_for_type (target);
+      SET_DECL_ASSEMBLER_NAME (name_decl, 
+	mangle_typeinfo_string_for_type (target));
     else
-      DECL_ASSEMBLER_NAME (name_decl) = DECL_NAME (name_decl);
+      SET_DECL_ASSEMBLER_NAME (name_decl, DECL_NAME (name_decl));
     DECL_INITIAL (name_decl) = name_string;
     cp_finish_decl (name_decl, name_string, NULL_TREE, 0);
     pushdecl_top_level (name_decl);
@@ -1753,7 +1753,7 @@
       if (flag_weak || !typeinfo_in_lib_p (target_type))
 	comdat_linkage (decl);
     }
-  DECL_ASSEMBLER_NAME (decl) = name;
+  SET_DECL_ASSEMBLER_NAME (decl, name);
   DECL_INITIAL (decl) = init;
   cp_finish_decl (decl, init, NULL_TREE, 0);
   pushdecl_top_level (decl);
