This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix target/11096: i686-linux to sh-linux cross compilerfails to compile C++ files
- From: kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: gcc-patches at gcc dot gnu dot org
- Cc: dank at kegel dot com
- Date: Thu, 05 Jun 2003 17:32:37 +0900
- Subject: Re: [PATCH] Fix target/11096: i686-linux to sh-linux cross compilerfails to compile C++ files
- References: <3EDECC85.10108@kegel.com>
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