This is the mail archive of the gcc-patches@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]

Re: Patch to constify/prototype/clean collect2.[ch] &tlink.c, part 1/2


>>>>> "Richard" == Richard Henderson <rth@cygnus.com> writes:

    Richard> Actually, I'd prefer to _not_ cast and get the `discards
    Richard> qualifiers' warning on broken systems.

But that could result in an error when building with a strict ANSI/ISO
compiler.  I don't think that you can pass `const char *' to `char *'
in ANSI/ISO C; you certainly can't in C++.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


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