This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]