aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManfred Hollstein <manfred@gcc.gnu.org>1998-10-10 09:24:06 +0000
committerManfred Hollstein <manfred@gcc.gnu.org>1998-10-10 09:24:06 +0000
commit066d147cbfa46e524a8016aed2ac4b449400126b (patch)
treee7210a87942045b804ed248006cb057c098d9e06
parent182ed311af85ccbf36aa0b51566c3df69d0b1b9c (diff)
downloadgcc-066d147cbfa46e524a8016aed2ac4b449400126b.zip
gcc-066d147cbfa46e524a8016aed2ac4b449400126b.tar.gz
gcc-066d147cbfa46e524a8016aed2ac4b449400126b.tar.bz2
decl2.c (start_objects): Add new variable `joiner' and initialize it properly.
8 * decl2.c (start_objects): Add new variable `joiner' and initialize it properly. From-SVN: r22975
-rw-r--r--gcc/cp/decl2.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index f70867a..1f80473 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -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);