Subject: HACK for gcc/ra-colorize.c on m68k
To: None <port-m68k@NetBSD.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: tech-toolchain
Date: 04/11/2004 01:21:21
Does the following hack for gcc on m68k noted in src/doc/HACK
is still needed on gcc-3.3.3?

---
port	sun2, m68k

	hack	gcc 3.3.2/gcc/ra-colorize.c
	cdate	Wed Nov  5 11:03:13 EST 2003
	who	mrg
	file	gnu/usr.bin/gcc/backend/Makefile : 1.11
	descr
		ra-colorize.c causes a whole spew of unreferenced .L* local
		symbols.  using -O0 (or even -O2 reportedly) avoids the problem.
	kcah
---

I have not tried sun2, but at least build.sh on hp300 finished
without this hack. Is it OK to commit the following change?

---
Index: Makefile
===================================================================
RCS file: /cvsroot/src/gnu/usr.bin/gcc3/backend/Makefile,v
retrieving revision 1.14
diff -u -r1.14 Makefile
--- Makefile	22 Feb 2004 01:24:25 -0000	1.14
+++ Makefile	10 Apr 2004 16:17:20 -0000
@@ -45,7 +45,7 @@
 CPPFLAGS.print-rtl1.c=		-DGENERATOR_FILE
 
 # XXX
-.if ${MACHINE_ARCH} == "m68k" || ${MACHINE_ARCH} == "m68000"
+.if ${MACHINE_ARCH} == "m68000"
 COPTS.ra-colorize.c=		-O0
 .endif
 
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp