head	1.13;
access;
symbols
	gcc-2_8_1-990325:1.13
	gcc-2_8_1-990319:1.13
	gcc-2_8_1-990302:1.13
	gcc_2_8_1-990302:1.13
	gcc_2_8_1-990222:1.13
	gcc-2_8_1-990109:1.13
	gcc-2_8_1-981210:1.13
	gcc-2_8_1-981208:1.13
	gcc-2_8_1-980929:1.13
	gcc_2_8_1-980929:1.13
	gcc-2_8_1-980928:1.13
	gcc-2_8_1-980813:1.13
	gcc-2_8_1-980811:1.13
	gcc-2_8_1-980718:1.13
	gcc-2_8_1-980705:1.13
	gcc-2_8_1-980627:1.13
	gcc-2_8_1-980609:1.13
	gcc-2_8_1-980608:1.13
	gcc-2_8_1-980529:1.13
	gcc-2_8_1-980525:1.13
	gcc-2_8_1-980513:1.13
	gcc-2_8_1-980502:1.13
	gcc-2_8_1-980426:1.13
	gcc-2_8_1-980419:1.13
	gcc-2_8_1-980413:1.13
	gcc-2_8_1-980412:1.13
	gcc-2_8_1-980407:1.13
	gcc-2_8_1-980401:1.13
	gcc_2_8_1-980315:1.13
	gcc-2_8_1-RELEASE:1.12;
locks; strict;
comment	@ * @;


1.13
date	98.03.13.12.11.50;	author kenner;	state Exp;
branches;
next	1.12;

1.12
date	95.06.15.19.27.32;	author kenner;	state Exp;
branches;
next	1.11;

1.11
date	94.08.14.23.09.34;	author wilson;	state Exp;
branches;
next	1.10;

1.10
date	94.05.04.18.20.49;	author wilson;	state Exp;
branches;
next	1.9;

1.9
date	94.03.08.01.43.42;	author wilson;	state Exp;
branches;
next	1.8;

1.8
date	94.01.24.22.51.58;	author wilson;	state Exp;
branches;
next	1.7;

1.7
date	93.10.02.08.46.12;	author dje;	state Exp;
branches;
next	1.6;

1.6
date	93.07.21.21.37.03;	author wilson;	state Exp;
branches;
next	1.5;

1.5
date	93.05.31.22.21.33;	author rms;	state Exp;
branches;
next	1.4;

1.4
date	93.01.05.20.06.50;	author meissner;	state Exp;
branches;
next	1.3;

1.3
date	92.12.06.12.57.23;	author meissner;	state Exp;
branches;
next	1.2;

1.2
date	92.11.08.02.29.55;	author rms;	state Exp;
branches;
next	1.1;

1.1
date	92.09.26.22.01.27;	author meissner;	state Exp;
branches;
next	;


desc
@RISC-OS version 5 config file
@


1.13
log
@Minor reformatting.
@
text
@/* Definitions of target machine for GNU compiler.
   MIPS RISC-OS, 5.0 BSD version.
   Copyright (C) 1991 Free Software Foundation, Inc.

This file is part of GNU CC.

GNU CC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.

GNU CC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with GNU CC; see the file COPYING.  If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.  */

#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 \
-Asystem(unix) -Asystem(bsd) -Acpu(mips) -Amachine(mips)"

#define STANDARD_INCLUDE_DIR "/bsd43/usr/include"

#define LINK_SPEC "\
%{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} \
%{bestGnum} %{shared} %{non_shared} \
%{call_shared} %{no_archive} %{exact_version} \
%{!shared: %{!non_shared: %{!call_shared: -non_shared}}} \
-systype /bsd43/"
		    
#define LIB_SPEC "%{p:-lprof1} %{pg:-lprof1} -lc"

#define STARTFILE_SPEC "%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt1.o%s crtn.o%s}}"

#define MACHINE_TYPE "RISC-OS BSD Mips"

/* Generate calls to memcpy, etc., not bcopy, etc.  */
#define TARGET_MEM_FUNCTIONS

/* Override defaults for finding the MIPS tools.  */
#define MD_STARTFILE_PREFIX "/bsd43/usr/lib/cmplrs/cc/"
#define MD_EXEC_PREFIX "/bsd43/usr/lib/cmplrs/cc/"

#include "mips/mips.h"

/* Some assemblers have a bug that causes backslash escaped chars in .ascii
   to be misassembled, so we just completely avoid it.  */
#undef ASM_OUTPUT_ASCII
#define ASM_OUTPUT_ASCII(FILE,PTR,LEN)			\
do {							\
  unsigned char *s;					\
  int i;						\
  for (i = 0, s = (unsigned char *)(PTR); i < (LEN); s++, i++)	\
    {							\
      if ((i % 8) == 0)					\
	fputs ("\n\t.byte\t", (FILE));			\
      fprintf ((FILE), "%s0x%x", (i%8?",":""), (unsigned)*s); \
    }							\
  fputs ("\n", (FILE));					\
} while (0)
@


1.12
log
@Change FSF address.
@
text
@d1 2
a2 1
/* Definitions of target machine for GNU compiler.  MIPS RISC-OS, 5.0 BSD version.
@


1.11
log
@(ASM_OUTPUT_NEWLINE): Delete.
(ASM_OUTPUT_ASCII): Define.
@
text
@d18 2
a19 1
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
@


1.10
log
@(CPP_SPEC): Delete.
@
text
@d49 1
a49 4
/* Some RISCOS assemblers misassemble \n in a .ascii,
   so we use \X0A instead.  */
#define ASM_OUTPUT_NEWLINE(STREAM) \
  fputs ("\\X0A", (STREAM));
d51 15
a65 1
#include "mips/mips.h"
@


1.9
log
@(LINK_SPEC): Do not depend on gas.  Don't interpret -EB
and -EL options, but do pass them.
@
text
@a28 9
#define CPP_SPEC "\
%{.cc:	-D__LANGUAGE_C_PLUS_PLUS -D_LANGUAGE_C_PLUS_PLUS} \
%{.cxx:	-D__LANGUAGE_C_PLUS_PLUS -D_LANGUAGE_C_PLUS_PLUS} \
%{.C:	-D__LANGUAGE_C_PLUS_PLUS -D_LANGUAGE_C_PLUS_PLUS} \
%{.m:	-D__LANGUAGE_OBJECTIVE_C -D_LANGUAGE_OBJECTIVE_C} \
%{.S:	-D__LANGUAGE_ASSEMBLY -D_LANGUAGE_ASSEMBLY %{!ansi:-DLANGUAGE_ASSEMBLY}} \
%{.s:	-D__LANGUAGE_ASSEMBLY -D_LANGUAGE_ASSEMBLY %{!ansi:-DLANGUAGE_ASSEMBLY}} \
%{!.S:%{!.s:	-D__LANGUAGE_C -D_LANGUAGE_C %{!ansi:-DLANGUAGE_C}}}"

@


1.8
log
@(ASM_OUTPUT_NEWLINE): Define new macro.
@
text
@d39 5
a43 8
%{G*} \
%{!mgas: \
	%{EB} %{!EB: -EB} \
	%{EL: %e-EL not supported} \
	%{mips1} %{mips2} %{mips3} %{bestGnum} \
	%{shared} %{non_shared} %{call_shared} %{no_archive} %{exact_version} \
	%{!shared: %{!non_shared: %{!call_shared: -non_shared}}} \
	-systype /bsd43/ }"
@


1.7
log
@(CPP_PREDEFINES): Add system/cpu/machine assertions where missing.
@
text
@d61 5
@


1.6
log
@(CPP_SPEC): Define LANGUAGE_ASSEMBLY, not
LANGUAGE_C, when compiling a .s file.
@
text
@d22 4
a25 2
#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"
@


1.5
log
@(STANDARD_INCLUDE_DIR): Renamed from SYSTEM_INCLUDE_DIR.
(LINK_SPEC): Delete excess close brace.
@
text
@d33 2
a34 1
%{!.S:	-D__LANGUAGE_C -D_LANGUAGE_C %{!ansi:-DLANGUAGE_C}}"
@


1.4
log
@Move MIPS files into config/mips.
@
text
@d25 1
a25 1
#define SYSTEM_INCLUDE_DIR "/bsd43/usr/include"
d42 1
a42 1
	%{!shared: %{!non_shared: %{!call_shared: -non_shared}}}} \
@


1.3
log
@Pass -call_shared to linker.
@
text
@d58 1
a58 1
#include "mips.h"
@


1.2
log
@(CPP_PREDEFINES): Add single-underscore variants of all the predefined symbols.
@
text
@d41 2
a42 1
	%{shared} %{non_shared} %{!shared: %{!non_shared: -non_shared}} \
@


1.1
log
@Initial revision
@
text
@d22 2
a23 1
#define CPP_PREDEFINES "-Dmips -Dunix -Dhost_mips -DMIPSEB -DR3000 -DSYSTYPE_BSD43"
@
