[Bug target/48009] Bootstrap failure: c++locale.cc: invalid conversion from 'const char*' to 'char*'

skunk at iskunk dot org gcc-bugzilla@gcc.gnu.org
Mon May 14 03:43:00 GMT 2012


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 **);";
};



More information about the Gcc-bugs mailing list