PATCH COMMITTED: Add const qualifier

Ian Lance Taylor iant@google.com
Tue Oct 5 18:40:00 GMT 2010


In lto.c strchr is called with a const char * and the result is caught
in a char * variable.  That is fine in C but in C++ strchr is overloaded
and the result is const char *, which breaks the --enable-build-with-cxx
configure option.  In this case the variable might as well be const
cha r*, so I made that change.  Bootstrapped on x86_64-unknown-linux-gnu.
I did not run the testsuite.

Ian


2010-10-05  Ian Lance Taylor  <iant@google.com>

	* lto.c (lto_section_with_id): Make s a const pointer.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 394 bytes
Desc: const
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20101005/80a93f37/attachment.bin>


More information about the Gcc-patches mailing list