https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63853
Bug ID: 63853
Summary: [5.0 Regression] The use of strchrnul breaks bootstrap
on x86_64-apple-darwin14.
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: dominiq at lps dot ens.fr
CC: fxcoudert at gcc dot gnu.org, howarth at bromo dot
med.uc.edu,
iains at gcc dot gnu.org, jakub at gcc dot gnu.org,
kyukhin at gcc dot gnu.org
The use of strchrnul breaks bootstrap at stage1 on x86_64-apple-darwin14:
...
g++ -c -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables
-W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format
-Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I.
-I. -I../../work/gcc -I../../work/gcc/. -I../../work/gcc/../include -I./../intl
-I../../work/gcc/../libcpp/include -I/opt/mp/include
-I../../work/gcc/../libdecnumber -I../../work/gcc/../libdecnumber/dpd
-I../libdecnumber -I../../work/gcc/../libbacktrace -DCLOOG_INT_GMP
-I/opt/mp/include -o lto-wrapper.o -MT lto-wrapper.o -MMD -MP -MF
./.deps/lto-wrapper.TPo ../../work/gcc/lto-wrapper.c
../../work/gcc/lto-wrapper.c: In function 'unsigned int parse_env_var(const
char*, char***, const char*)':
../../work/gcc/lto-wrapper.c:427:35: error: 'strchrnul' was not declared in
this scope
nextval = strchrnul (curval, ':');
^
../../work/gcc/lto-wrapper.c: In function 'void
append_offload_options(obstack*, const char*, cl_decoded_option*, unsigned
int)':
../../work/gcc/lto-wrapper.c:584:34: error: 'strchrnul' was not declared in
this scope
next = strchrnul (cur, ',');
^
Makefile:1058: recipe for target 'lto-wrapper.o' failed
...
See Jakub's comment at
https://gcc.gnu.org/ml/gcc-patches/2014-10/msg02205.html