gcc/libcpp
Martin Storsjö 3fe3efe5c1 gcc: Make strchr return value pointers const
This fixes compilation of codepaths for dos-like filesystems
with Clang. When built with clang, it treats C input files as C++
when the compiler driver is invoked in C++ mode, triggering errors
when the return value of strchr() on a pointer to const is assigned
to a pointer to non-const variable.

This matches similar variables outside of the ifdefs for dos-like
path handling.

2020-09-07  Martin Storsjö  <martin@martin.st>

gcc/
	* dwarf2out.c (file_name_acquire): Make a strchr return value
	pointer to const.
libcpp/
	* files.c (remap_filename): Make a strchr return value pointer
	to const.
2020-09-07 13:20:21 +02:00
..
include diagnostics: Support conversion of tabs to spaces [PR49973] [PR86904] 2020-07-14 12:05:56 -04:00
po Daily bump. 2020-07-21 00:16:28 +00:00
aclocal.m4
ChangeLog Daily bump. 2020-07-31 00:16:26 +00:00
ChangeLog.jit
charset.c diagnostics: Support conversion of tabs to spaces [PR49973] [PR86904] 2020-07-14 12:05:56 -04:00
config.in
configure Require CET support only for the final GCC build 2020-07-30 05:36:24 -07:00
configure.ac
directives.c
errors.c
expr.c
files.c gcc: Make strchr return value pointers const 2020-09-07 13:20:21 +02:00
generated_cpp_wcwidth.h
identifiers.c
init.c preprocessor: Teach traditional about has_include [PR95889] 2020-07-29 07:47:21 -07:00
internal.h
lex.c libcpp: Fix up raw string literal parsing error-recovery [PR96323] 2020-07-28 15:40:15 +02:00
line-map.c preprocessor: line-map cleanups 2020-07-20 05:11:19 -07:00
location-example.txt
macro.c
Makefile.in
makeucnid.c
mkdeps.c
pch.c
symtab.c
system.h
traditional.c preprocessor: Teach traditional about has_include [PR95889] 2020-07-29 07:47:21 -07:00
ucnid.h
ucnid.tab