Article View: gnu.gcc.bug
Article #1285Problem with mips-mips-riscos5bsd target, +fix
From: Mike Rendell
Date: Fri, 06 Nov 1992 10:35
Date: Fri, 06 Nov 1992 10:35
73 lines
2653 bytes
2653 bytes
Environment: gcc 2.3.1 on Mips M/120 running Risc/os 5.00 When compiling gcc with target mips-mips-riscos5bsd, the compile fails in stage 2 because the rusage structure is not defined. This problem occurs because _SYSTYPE_BSD43 is not defined in the CPP_PREDEFINES in config/mips-5bsd.h (SYSTYPE_BSD43 is, but both are needed). The following diffs fix this problem and similar problems in the svr4 and sysv environments. *** mips-5bsd.h.orig Sat Sep 26 19:32:54 1992 --- mips-5bsd.h Wed Nov 4 14:37:37 1992 *************** *** 19,25 **** #define MIPS_BSD43 ! #define CPP_PREDEFINES "-Dmips -Dunix -Dhost_mips -DMIPSEB -DR3000 -DSYSTYPE_BSD43" #define SYSTEM_INCLUDE_DIR "/bsd43/usr/include" --- 19,26 ---- #define MIPS_BSD43 ! #define CPP_PREDEFINES "-Dmips -Dunix -Dhost_mips -DMIPSEB -DR3000 -DSYSTYPE_BSD43 \ ! -D_mips -D_unix -D_host_mips -D_MIPSEB -D_R3000 -D_SYSTYPE_BSD43" #define SYSTEM_INCLUDE_DIR "/bsd43/usr/include" *** mips-5svr4.h.orig Sat Sep 26 19:32:56 1992 --- mips-5svr4.h Wed Nov 4 14:37:50 1992 *************** *** 19,25 **** #define MIPS_SVR4 ! #define CPP_PREDEFINES "-Dmips -Dunix -Dhost_mips -DMIPSEB -DR3000 -DSYSTYPE_SVR4" #define SYSTEM_INCLUDE_DIR "/svr4/usr/include" --- 19,26 ---- #define MIPS_SVR4 ! #define CPP_PREDEFINES "-Dmips -Dunix -Dhost_mips -DMIPSEB -DR3000 -DSYSTYPE_SVR4 \ ! -D_mips -D_unix -D_host_mips -D_MIPSEB -D_R3000 -D_SYSTYPE_SVR4" #define SYSTEM_INCLUDE_DIR "/svr4/usr/include" *** mips-5sysv.h.orig Sat Sep 26 19:32:57 1992 --- mips-5sysv.h Wed Nov 4 14:37:56 1992 *************** *** 19,25 **** #define MIPS_SYSV ! #define CPP_PREDEFINES "-Dmips -Dunix -Dhost_mips -DMIPSEB -DR3000 -DSYSTYPE_SYSV" #define SYSTEM_INCLUDE_DIR "/sysv/usr/include" --- 19,26 ---- #define MIPS_SYSV ! #define CPP_PREDEFINES "-Dmips -Dunix -Dhost_mips -DMIPSEB -DR3000 -DSYSTYPE_SYSV \ ! -D_mips -D_unix -D_host_mips -D_MIPSEB -D_R3000 -D_SYSTYPE_SYSV" #define SYSTEM_INCLUDE_DIR "/sysv/usr/include" -- Michael Rendell - Dept. of Comp. Sci., Memorial University of Newfoundland
Technical Details
Message-ID:
<9211061753.AA20322@odie.cs.mun.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!odie.cs.mun.ca!michaelShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!odie.cs.mun.ca!michael From: michael@odie.cs.mun.ca (Mike Rendell) Subject: Problem with mips-mips-riscos5bsd target, +fix Message-ID: <9211061753.AA20322@odie.cs.mun.ca> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Fri, 6 Nov 1992 10:35:25 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 74