Patchwork RFA: Fix target/47109 (m68k-netbsdelf build failure)

login
register
mail settings
Submitter Joern Rennecke
Date Dec. 31, 2010, 3:44 p.m.
Message ID <20101231104449.kkxh53zmw4ckcksk-nzlynne@webmail.spamcop.net>
Download mbox | patch
Permalink /patch/77087/
State New
Headers show

Comments

Joern Rennecke - Dec. 31, 2010, 3:44 p.m.
m68k is not only used for the m68000 microprocessor, but also to describe the
entiry microprocessor family and its architecture, so using m68k should
be good enough.  Besides, the version of collect2 does not magically change
when you pass different options to gcc.

Tested by building "all-gcc" for x86_64-pc-linux-gnu X m68k-netbsdelf .
2010-12-31  Joern Rennecke  <amylaar@spamcop.net>

	PR target/47109
	* config/m68k/netbsd-elf.h (TARGET_VERSION): Don't use TARGET_68010.

Patch

Index: config/m68k/netbsd-elf.h
===================================================================
--- config/m68k/netbsd-elf.h	(revision 168374)
+++ config/m68k/netbsd-elf.h	(working copy)
@@ -53,11 +53,7 @@  #define SUBTARGET_EXTRA_SPECS \
 
 
 #undef TARGET_VERSION
-#define TARGET_VERSION			\
-  fprintf (stderr,			\
-	   TARGET_68010			\
-	   ? " (NetBSD/68010 ELF)"	\
-	   : " (NetBSD/m68k ELF)");
+#define TARGET_VERSION fprintf (stderr, " (NetBSD/m68k ELF)");
 
 
 /* Provide a CPP_SPEC appropriate for NetBSD m68k targets.  Currently we