This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: cross building 4.3.2 for m68k--netbsdelf
- From: Ian Lance Taylor <iant at google dot com>
- To: "Kurt J. Lidl" <lidl at pix dot net>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 05 Jan 2009 12:49:23 -0800
- Subject: Re: cross building 4.3.2 for m68k--netbsdelf
- References: <20081231040915.GA10575@pix.net>
"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