This is the same as bug 3774, but for SH instead of arm.
Compiling a 'hello, world' c++ program spews errors of the sort
.../g++-v3/bits/std_cstdio.h:145: `vfscanf' not declared
unless -D_ISOC9X_SOURCE is passed to the compiler.
The fix for arm appears to have been
which predefines _GNU_SOURCE, with the comment
/* The GNU C++ standard library currently requires _GNU_SOURCE *
Looks like other architectures might need this, too. I'm attaching a patch
for sh4. No idea if it's actually right yet, but it seems logical.
Created attachment 4172 [details]
Patch that seems to resolve the problem
> OK for 3.3 as an sh-linux specific regression fix. Thanks.
> Ugh. Again, 3.4 includes this already.
Patch committed: http://gcc.gnu.org/ml/gcc-cvs/2003-06/msg00242.html. Thanks for fixing this