This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/48009] Bootstrap failure: c++locale.cc: invalid conversion from 'const char*' to 'char*'
- From: "skunk at iskunk dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 14 May 2012 03:19:36 +0000
- Subject: [Bug target/48009] Bootstrap failure: c++locale.cc: invalid conversion from 'const char*' to 'char*'
- Auto-submitted: auto-generated
- References: <bug-48009-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48009
--- Comment #8 from Daniel Richard G. <skunk at iskunk dot org> 2012-05-14 03:19:36 UTC ---
Marc, thank you for the pointer. The single-line-edit case, at least, seems
straightforward enough.
Here's my stab at it:
/*
* stdlib.h on AIX 4.3 declares strtof() with a non-const first argument.
*/
fix = {
hackname = aix_strtof_const;
files = stdlib.h;
select = "(extern float +strtof)\(char \*, char \*\*\)";
c_fix = format;
c_fix_arg = "%1(const char *, char **)";
test_text = "strtof(char *, char **);";
};