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: cross building 4.3.2 for m68k--netbsdelf


"Kurt J. Lidl" <lidl@pix.net> writes:

> --- gcc/config/m68k/netbsd-elf.h.orig	Thu Aug  2 06:49:31 2007
> +++ gcc/config/m68k/netbsd-elf.h	Tue Dec 30 21:56:29 2008
> @@ -52,11 +52,11 @@
>  
>  
>  #undef TARGET_VERSION
> -#define TARGET_VERSION			\
> -  fprintf (stderr,			\
> -	   TARGET_68010			\
> -	   ? " (NetBSD/68010 ELF)"	\
> -	   : " (NetBSD/m68k ELF)");
> +#ifdef __mc68010__
> +#define TARGET_VERSION fprintf (stderr, " (NetBSD/68010 ELF)");
> +#else
> +#define TARGET_VERSION fprintf (stderr, " (NetBSD/m68k ELF)");
> +#endif

Thanks.  Unfortunately, that isn't the right patch: it tests a macro
defined by the target compiler in a file compiled by the host
compiler.

Ian


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