This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
C++ PATCH: Fix new ABI manglings of vendor extensions
- To: gcc-patches at gcc dot gnu dot org
- Subject: C++ PATCH: Fix new ABI manglings of vendor extensions
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Sun, 03 Sep 2000 20:23:56 -0700
- Organization: CodeSourcery, LLC
The new ABI spec is still moving ever so slightly. The mangling for
vendor-extended operators changed this week due to Jeffrey Oldham's
observation that the arity of such an operator was not encoded in the
operator mangling.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
2000-09-03 Mark Mitchell <mark@codesourcery.com>
* operators.def (ALIGNOF_EXPR, MAX_EXPR, MIN_EXPR): Change
new ABI mangling.
Index: operators.def
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/operators.def,v
retrieving revision 1.5
diff -c -p -r1.5 operators.def
*** operators.def 2000/06/09 16:26:24 1.5
--- operators.def 2000/09/04 03:21:55
*************** DEF_SIMPLE_OPERATOR ("++", PREINCREMENT_
*** 98,104 ****
DEF_SIMPLE_OPERATOR ("--", PREDECREMENT_EXPR, "mm", "__mm", 1)
DEF_SIMPLE_OPERATOR ("sizeof", SIZEOF_EXPR, "sz", "__sz", 1)
/* This is an extension. */
! DEF_SIMPLE_OPERATOR ("alignof", ALIGNOF_EXPR, "vx7alignof", "__al", 1)
/* The cast operator. */
DEF_SIMPLE_OPERATOR ("", TYPE_EXPR, "cv", OPERATOR_TYPENAME_FORMAT, 1)
--- 98,104 ----
DEF_SIMPLE_OPERATOR ("--", PREDECREMENT_EXPR, "mm", "__mm", 1)
DEF_SIMPLE_OPERATOR ("sizeof", SIZEOF_EXPR, "sz", "__sz", 1)
/* This is an extension. */
! DEF_SIMPLE_OPERATOR ("alignof", ALIGNOF_EXPR, "v17alignof", "__al", 1)
/* The cast operator. */
DEF_SIMPLE_OPERATOR ("", TYPE_EXPR, "cv", OPERATOR_TYPENAME_FORMAT, 1)
*************** DEF_SIMPLE_OPERATOR ("[]", ARRAY_REF, "i
*** 129,136 ****
DEF_SIMPLE_OPERATOR ("++", POSTINCREMENT_EXPR, "pp", "__pp", 2)
DEF_SIMPLE_OPERATOR ("--", POSTDECREMENT_EXPR, "mm", "__mm", 2)
/* These are extensions. */
! DEF_SIMPLE_OPERATOR ("<?", MIN_EXPR, "vx3min", "__mn", 2)
! DEF_SIMPLE_OPERATOR (">?", MAX_EXPR, "vx3max", "__mx", 2)
/* This one is needed for mangling. */
DEF_SIMPLE_OPERATOR ("::", SCOPE_REF, "sr", NULL, 2);
--- 129,136 ----
DEF_SIMPLE_OPERATOR ("++", POSTINCREMENT_EXPR, "pp", "__pp", 2)
DEF_SIMPLE_OPERATOR ("--", POSTDECREMENT_EXPR, "mm", "__mm", 2)
/* These are extensions. */
! DEF_SIMPLE_OPERATOR ("<?", MIN_EXPR, "v23min", "__mn", 2)
! DEF_SIMPLE_OPERATOR (">?", MAX_EXPR, "v23max", "__mx", 2)
/* This one is needed for mangling. */
DEF_SIMPLE_OPERATOR ("::", SCOPE_REF, "sr", NULL, 2);