summaryrefslogtreecommitdiffstats
path: root/gcc/cp/mangle.c
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-22 23:53:03 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-22 23:53:03 +0000
commite22d1c95c196fa06e02c281e92e6944c7f7ead09 (patch)
tree47df32fdb771da038d9188aff5ddc47d0f82c3af /gcc/cp/mangle.c
parentc05d01e2fe4256b73ff786066f9bd3d0f6a2fb69 (diff)
downloadppe42-gcc-e22d1c95c196fa06e02c281e92e6944c7f7ead09.tar.gz
ppe42-gcc-e22d1c95c196fa06e02c281e92e6944c7f7ead09.zip
* mangle.c (mangle_conv_op_name_for_type): Don't use `__op'
prefix. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37678 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/mangle.c')
-rw-r--r--gcc/cp/mangle.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c
index d4ffaff26c5..33eeefc447a 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);
OpenPOWER on IntegriCloud