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: "glisse at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 13 May 2012 08:59:25 +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 #7 from Marc Glisse <glisse at gcc dot gnu.org> 2012-05-13 08:59:25 UTC ---
(In reply to comment #6)
> (If anyone can point me to a fixinclude that does the same
> kind of one-line change elsewhere, I could work with that...)
That's easy, just take a look at the file fixincludes/inclhack.def, most fixes
are exactly this kind of one-line changes. Picking one completely at random:
fix = {
hackname = vxworks_needs_vxtypes;
files = time.h;
select = "uint_t([ \t]+_clocks_per_sec)";
c_fix = format;
c_fix_arg = "unsigned int%1";
test_text = "uint_t\t_clocks_per_sec;";
};
This one replaces uint_t with unsigned int. The README file in that directory
is useful too.
ISTR there was a problem with genfixes not working on recent OS, but that
shouldn't be a problem for you ;-)