This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[lto] Bootstrap fixlet
- From: Diego Novillo <dnovillo at google dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 1 Jun 2009 08:37:07 -0400
- Subject: [lto] Bootstrap fixlet
I had forgotten that my build tree was configured with bootstrap
disabled.
Diego.
* lto-function-out.c (output_function_decl): Fix type of STR.
Index: lto-function-out.c
===================================================================
--- lto-function-out.c (revision 148028)
+++ lto-function-out.c (working copy)
@@ -2755,7 +2755,7 @@ output_function_decl (struct output_bloc
the new name is always prefixed with '*' by
set_builtin_user_assembler_name. So, to prevent the
reader side from adding a second '*', we omit it here. */
- char *str = (char *) IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl));
+ const char *str = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl));
if (strlen (str) > 1 && str[0] == '*')
output_string (ob, ob->main_stream, &str[1]);
else