Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
da91c3ab
Commit
da91c3ab
authored
May 08, 1997
by
Richard Earnshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(CPP_SPEC): Rewrite using new sub-components.
(SUBTARGET_CPU_DEFAULT): Set to TARGET_CPU_arm2. From-SVN: r14054
parent
97d65fbc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
14 deletions
+26
-14
gcc/config/arm/riscix.h
+15
-8
gcc/config/arm/riscix1-1.h
+11
-6
No files found.
gcc/config/arm/riscix.h
View file @
da91c3ab
/* Definitions of target machine for GNU compiler. ARM RISCiX version.
/* Definitions of target machine for GNU compiler. ARM RISCiX version.
Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
Copyright (C) 1993, 1994, 1995
, 1997
Free Software Foundation, Inc.
Contributed by Richard Earnshaw (rwe11@cl.cam.ac.uk), based on original
Contributed by Richard Earnshaw (rwe11@cl.cam.ac.uk), based on original
work by Pieter `Tiggr' Schoenmakers (rcpieter@win.tue.nl)
work by Pieter `Tiggr' Schoenmakers (rcpieter@win.tue.nl)
and Martin Simmons (@harleqn.co.uk).
and Martin Simmons (@harleqn.co.uk).
...
@@ -51,13 +51,6 @@ Boston, MA 02111-1307, USA. */
...
@@ -51,13 +51,6 @@ Boston, MA 02111-1307, USA. */
"-Darm -Driscix -Dunix -Asystem(unix) -Acpu(arm) -Amachine(arm)"
"-Darm -Driscix -Dunix -Asystem(unix) -Acpu(arm) -Amachine(arm)"
#endif
#endif
#ifndef CPP_SPEC
#define CPP_SPEC "%{m6:-D__arm6__} \
%{mbsd:%{pedantic:%e-mbsd and -pedantic incompatible} -D_BSD_C} \
%{mxopen:%{mbsd:%e-mbsd and -mxopen incompatible} \
%{pedantic:%e-mxopen and -pedantic incompatible} -D_XOPEN_C} \
%{!mbsd:%{!mxopen:%{!ansi: -D_BSD_C}}}"
#endif
/* RISCiX has some weird symbol name munging, that is done to the object module
/* RISCiX has some weird symbol name munging, that is done to the object module
after assembly, which enables multiple libraries to be supported within
after assembly, which enables multiple libraries to be supported within
...
@@ -123,8 +116,22 @@ Boston, MA 02111-1307, USA. */
...
@@ -123,8 +116,22 @@ Boston, MA 02111-1307, USA. */
/* Maths operation domain error number, EDOM */
/* Maths operation domain error number, EDOM */
#define TARGET_EDOM 33
#define TARGET_EDOM 33
/* Override the normal default CPU */
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm2
#include "arm/aout.h"
#include "arm/aout.h"
/* Override CPP_SPEC, there's no point handling endianness (and probably
not much point handling apcs_pc), and we want to add the right #defines
when using the include files. */
#undef CPP_SPEC
#define CPP_SPEC "%(cpp_cpu_arch) %(cpp_apcs_pc) %(cpp_float) \
%{mbsd:%{pedantic:%e-mbsd and -pedantic incompatible} -D_BSD_C} \
%{mxopen:%{mbsd:%e-mbsd and -mxopen incompatible} \
%{pedantic:%e-mxopen and -pedantic incompatible} -D_XOPEN_C} \
%{!mbsd:%{!mxopen:%{!ansi: -D_BSD_C}}}"
/* The native RISCiX assembler does not support stabs of any kind; because
/* The native RISCiX assembler does not support stabs of any kind; because
the native assembler is not used by the compiler, Acorn didn't feel it was
the native assembler is not used by the compiler, Acorn didn't feel it was
necessary to put them in! */
necessary to put them in! */
...
...
gcc/config/arm/riscix1-1.h
View file @
da91c3ab
/* Definitions of target machine for GNU compiler. ARM RISCiX 1.1x version.
/* Definitions of target machine for GNU compiler. ARM RISCiX 1.1x version.
Copyright (C) 1993, 1995 Free Software Foundation, Inc.
Copyright (C) 1993, 1995
, 1997
Free Software Foundation, Inc.
Contributed by Richard Earnshaw (rwe11@cl.cam.ac.uk), based on original
Contributed by Richard Earnshaw (rwe11@cl.cam.ac.uk), based on original
work by Pieter `Tiggr' Schoenmakers (rcpieter@win.tue.nl)
work by Pieter `Tiggr' Schoenmakers (rcpieter@win.tue.nl)
and Martin Simmons (@harleqn.co.uk).
and Martin Simmons (@harleqn.co.uk).
...
@@ -21,7 +21,7 @@ along with GNU CC; see the file COPYING. If not, write to
...
@@ -21,7 +21,7 @@ along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
Boston, MA 02111-1307, USA. */
/* RISCi
x
1.1x is basically the same as 1.2x except that it doesn't have
/* RISCi
X
1.1x is basically the same as 1.2x except that it doesn't have
symrename or atexit. */
symrename or atexit. */
/* Translation to find startup files. On RISCiX boxes, gcrt0.o is in
/* Translation to find startup files. On RISCiX boxes, gcrt0.o is in
...
@@ -33,10 +33,6 @@ Boston, MA 02111-1307, USA. */
...
@@ -33,10 +33,6 @@ Boston, MA 02111-1307, USA. */
#define CPP_PREDEFINES "-Darm -Driscix -Dunix -Asystem(unix) -Acpu(arm) -Amachine(arm)"
#define CPP_PREDEFINES "-Darm -Driscix -Dunix -Asystem(unix) -Acpu(arm) -Amachine(arm)"
#endif
#endif
#ifndef CPP_SPEC
#define CPP_SPEC "%{m6:-D__arm6__} %{!ansi: -D_BSD_C}"
#endif
/* Riscix 1.1 doesn't have X/OPEN support, so only accept -mbsd (but ignore
/* Riscix 1.1 doesn't have X/OPEN support, so only accept -mbsd (but ignore
it).
it).
By not having -mxopen and -mno-symrename, we get warning messages,
By not having -mxopen and -mno-symrename, we get warning messages,
...
@@ -81,8 +77,17 @@ Boston, MA 02111-1307, USA. */
...
@@ -81,8 +77,17 @@ Boston, MA 02111-1307, USA. */
#define SYMBOL__MAIN __gccmain
#define SYMBOL__MAIN __gccmain
#endif
#endif
/* Override the normal default CPU */
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm2
#include "arm/aout.h"
#include "arm/aout.h"
#undef CPP_SPEC
#define CPP_SPEC "\
%(cpp_cpu_arch) %(cpp_apcs_pc) %(cpp_float) %{!ansi: -D_BSD_C} \
"
/* The native RISCiX assembler does not support stabs of any kind; because
/* The native RISCiX assembler does not support stabs of any kind; because
the native assembler is not used by the compiler, Acorn didn't feel it was
the native assembler is not used by the compiler, Acorn didn't feel it was
necessary to put them in! */
necessary to put them in! */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment