This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
C++ PATCH: Fix sprintf format
- From: Mark Mitchell <mark at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 17 Jun 2003 16:35:07 -0700
- Subject: C++ PATCH: Fix sprintf format
- Reply-to: mark at codesourcery dot com
Hopefully this patch, applied to mainline and branch, will make the
regression-checker happy...
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
2003-06-17 Mark Mitchell <mark@codesourcery.com>
* mangle.c (mangle_conv_op_name_for_type): Correct sprintf format
string.
Index: mangle.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/mangle.c,v
retrieving revision 1.73
diff -c -5 -p -r1.73 mangle.c
*** mangle.c 17 Jun 2003 16:58:17 -0000 1.73
--- mangle.c 17 Jun 2003 23:32:23 -0000
*************** mangle_conv_op_name_for_type (const tree
*** 2626,2636 ****
htab_hash_pointer (type), INSERT);
if (*slot)
return TREE_VALUE ((tree) *slot);
/* Create a unique name corresponding to TYPE. */
! sprintf (buffer, "operator %d\n", htab_elements (conv_type_names));
identifier = get_identifier (buffer);
*slot = build_tree_list (type, identifier);
/* Set bits on the identifier so we know later it's a conversion. */
IDENTIFIER_OPNAME_P (identifier) = 1;
--- 2626,2637 ----
htab_hash_pointer (type), INSERT);
if (*slot)
return TREE_VALUE ((tree) *slot);
/* Create a unique name corresponding to TYPE. */
! sprintf (buffer, "operator %lu\n",
! (unsigned long) htab_elements (conv_type_names));
identifier = get_identifier (buffer);
*slot = build_tree_list (type, identifier);
/* Set bits on the identifier so we know later it's a conversion. */
IDENTIFIER_OPNAME_P (identifier) = 1;