decl2.c (start_objects): Add new variable `joiner' and initialize it properly.
authorManfred Hollstein <manfred@gcc.gnu.org>
Sat, 10 Oct 1998 09:24:06 +0000 (09:24 +0000)
committerManfred Hollstein <manfred@gcc.gnu.org>
Sat, 10 Oct 1998 09:24:06 +0000 (09:24 +0000)
8
* decl2.c (start_objects): Add new variable `joiner' and
initialize it properly.

From-SVN: r22975

gcc/cp/decl2.c

index f70867a..1f80473 100644 (file)
@@ -2977,10 +2977,17 @@ start_objects (method_type, initp)
 
   if (flag_init_priority)
     {
+      char joiner;
+
+#ifdef JOINER
+      joiner = JOINER;
+#else
+      joiner = '_';
+#endif
       if (initp == 0)
        initp = DEFAULT_INIT_PRIORITY;
 
-      sprintf (type, "%c%c%.5u", method_type, JOINER, initp);
+      sprintf (type, "%c%c%.5u", method_type, joiner, initp);
     }
   else
     sprintf (type, "%c", method_type);