This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix target/11096: i686-linux to sh-linux cross compilerfails to compile C++ files


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]