aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2000-11-22 23:53:03 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-11-22 23:53:03 +0000
commit6e1b44bce79321febde74d59bbadf44bbb9776a7 (patch)
tree47df32fdb771da038d9188aff5ddc47d0f82c3af /gcc/cp
parentdc60a41bed4d2f2c9cce085af2ee57d62865f30d (diff)
downloadgcc-6e1b44bce79321febde74d59bbadf44bbb9776a7.zip
gcc-6e1b44bce79321febde74d59bbadf44bbb9776a7.tar.gz
gcc-6e1b44bce79321febde74d59bbadf44bbb9776a7.tar.bz2
mangle.c (mangle_conv_op_name_for_type): Don't use `__op' prefix.
* mangle.c (mangle_conv_op_name_for_type): Don't use `__op' prefix. From-SVN: r37678
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog3
-rw-r--r--gcc/cp/mangle.c14
2 files changed, 6 insertions, 11 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index ef02d3d..bbc26de6 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,8 @@
2000-11-22 Mark Mitchell <mark@codesourcery.com>
+ * mangle.c (mangle_conv_op_name_for_type): Don't use `__op'
+ prefix.
+
* pt.c (do_decl_instantiate): Explicitly clone constructors and
destructors that haven't already been cloned.
diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c
index d4ffaff..33eeefc 100644
--- a/gcc/cp/mangle.c
+++ b/gcc/cp/mangle.c
@@ -2226,15 +2226,7 @@ mangle_thunk (fn_decl, offset, vcall_offset)
/* Return an identifier for the mangled unqualified name for a
conversion operator to TYPE. This mangling is not specified by the
- ABI spec; it is only used internally.
-
- For compatibility with existing conversion operator mechanisms,
- the mangled form is `__op<type>' where <type> is the mangled
- representation of TYPE.
-
- FIXME: Though identifiers with starting with __op are reserved for
- the implementation, it would eventually be nice to use inaccessible
- names for these operators. */
+ ABI spec; it is only used internally. */
tree
mangle_conv_op_name_for_type (type)
@@ -2245,10 +2237,10 @@ mangle_conv_op_name_for_type (type)
/* Build the mangling for TYPE. */
const char *mangled_type = mangle_type_string (type);
/* Allocate a temporary buffer for the complete name. */
- char *op_name = (char *) xmalloc (strlen (OPERATOR_TYPENAME_FORMAT)
+ char *op_name = (char *) xmalloc (strlen ("operator ")
+ strlen (mangled_type) + 1);
/* Assemble the mangling. */
- strcpy (op_name, OPERATOR_TYPENAME_FORMAT);
+ strcpy (op_name, "operator ");
strcat (op_name, mangled_type);
/* Find or create an identifier. */
identifier = get_identifier (op_name);