[PATCH] Fix target/11096: i686-linux to sh-linux cross compiler fails to compile C++ files
kaz Kojima
kkojima@rr.iij4u.or.jp
Thu Jun 5 08:25:00 GMT 2003
Dan Kegel <dank@kegel.com> wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11096 is the same as
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3774,
> but for SH instead of arm.
[snip]
> The fix for arm appears to have been
> http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/arm/linux-elf.h.diff?r1=1.31&r2=1.32
> 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 the best fix, but it seems logical,
> and it seems to resolve the problem for me.
OK for 3.3 as an sh-linux specific regression fix. Thanks.
Ugh. Again, 3.4 includes this already.
Regards,
kaz
More information about the Gcc-patches
mailing list