Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/gnu/dist/toolchain/gcc/config/arm Pull up revision 1.6 ...
details: https://anonhg.NetBSD.org/src/rev/84b8d8ddbdcd
branches: netbsd-1-6
changeset: 529361:84b8d8ddbdcd
user: he <he%NetBSD.org@localhost>
date: Sat Nov 16 09:22:16 2002 +0000
description:
Pull up revision 1.6 (requested by thorpej in ticket #635):
o Add -march=armv5, -march=armv5t, -march=armv5te, which are
internally treated like -march=armv4t, but which generate
__ARM_ARCH_5__, __ARM_ARCH_5T__, and __ARM_ARCH_5TE__
defines, respectively.
o Add -mcpu=xscale, which is internally treated like
-mcpu=strongarm, but which generates __ARM_ARCH_5TE__ and
__XSCALE__ defines.
These command-line options and definitions are consistent
with gcc 3.x, and allow NetBSD Makefiles to use them in a
forward-compatible way, and also give hand-tuned source
code (e.g. assembly) a chance of tuning for XScale.
diffstat:
gnu/dist/toolchain/gcc/config/arm/arm.c | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
diffs (47 lines):
diff -r df5651ee7c1b -r 84b8d8ddbdcd gnu/dist/toolchain/gcc/config/arm/arm.c
--- a/gnu/dist/toolchain/gcc/config/arm/arm.c Sat Nov 16 09:21:47 2002 +0000
+++ b/gnu/dist/toolchain/gcc/config/arm/arm.c Sat Nov 16 09:22:16 2002 +0000
@@ -220,6 +220,22 @@
{"strongarm", FL_MODE26 | FL_MODE32 | FL_FAST_MULT | FL_ARCH4 | FL_LDSCHED | FL_STRONG },
{"strongarm110", FL_MODE26 | FL_MODE32 | FL_FAST_MULT | FL_ARCH4 | FL_LDSCHED | FL_STRONG },
{"strongarm1100", FL_MODE26 | FL_MODE32 | FL_FAST_MULT | FL_ARCH4 | FL_LDSCHED | FL_STRONG },
+
+ /* Local NetBSD additions. These switches also appear in gcc 3.x. They
+ have been added to the NetBSD in-tree 2.95.3 in order to provide for
+ command-line compatibility with gcc 3.x.
+
+ We treat them like other CPUs that 2.95.3 already supports:
+
+ arm10tdmi -> arm9tdmi
+ arm1020t -> arm9tdmi
+
+ xscame -> strongarm
+
+ --thorpej%netbsd.org@localhost */
+ {"arm10tdmi", FL_MODE32 | FL_FAST_MULT | FL_ARCH4 | FL_THUMB | FL_LDSCHED },
+ {"arm1020t", FL_MODE32 | FL_FAST_MULT | FL_ARCH4 | FL_THUMB | FL_LDSCHED },
+ {"xscale", FL_MODE32 | FL_FAST_MULT | FL_ARCH4 | FL_LDSCHED | FL_STRONG },
{NULL, 0}
};
@@ -236,6 +252,20 @@
/* Strictly, FL_MODE26 is a permitted option for v4t, but there are no
implementations that support it, so we will leave it out for now. */
{"armv4t", FL_CO_PROC | FL_MODE32 | FL_FAST_MULT | FL_ARCH4 | FL_THUMB },
+ /* Local NetBSD additions. These switches also appear in gcc 3.x. They
+ have been added to the NetBSD in-tree 2.95.3 in order to provide for
+ command-line compatibility with gcc 3.x.
+
+ We treat them like other ARCHs that 2.95.3 already supports:
+
+ armv5 -> armv4t
+ armv5t -> armv4t
+ armv5te -> armv4t
+
+ --thorpej%netbsd.org@localhost */
+ {"armv5", FL_CO_PROC | FL_MODE32 | FL_FAST_MULT | FL_ARCH4 | FL_THUMB },
+ {"armv5t", FL_CO_PROC | FL_MODE32 | FL_FAST_MULT | FL_ARCH4 | FL_THUMB },
+ {"armv5te", FL_CO_PROC | FL_MODE32 | FL_FAST_MULT | FL_ARCH4 | FL_THUMB },
{NULL, 0}
};
Home |
Main Index |
Thread Index |
Old Index