The source code use some global register variables, and gcc 2.95 reports errors because the header files contains "static inline" function definitions before the global register variables are defined. Reordering the includes is too much work, so just fall back to normal (non-register) globals when using gcc2.
14 lines
450 B
Text
14 lines
450 B
Text
$NetBSD: patch-ab,v 1.3 2005/04/02 22:23:53 kristerw Exp $
|
|
|
|
--- main/reg68k.c.orig Sun Apr 3 00:02:45 2005
|
|
+++ main/reg68k.c Sun Apr 3 00:04:24 2005
|
|
@@ -21,7 +21,8 @@
|
|
/*** global variables ***/
|
|
|
|
#if (!(defined(PROCESSOR_ARM) || defined(PROCESSOR_SPARC) \
|
|
- || defined(PROCESSOR_INTEL)))
|
|
+ || defined(PROCESSOR_INTEL))) \
|
|
+ || (defined(PROCESSOR_INTEL) && (__GNUC__ <= 2))
|
|
uint32 reg68k_pc;
|
|
uint32 *reg68k_regs;
|
|
t_sr reg68k_sr;
|