Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gcc/dist/gcc - for m680[012]0, set cpu_type=m68k
details: https://anonhg.NetBSD.org/src/rev/2b7c03e78baa
branches: trunk
changeset: 766830:2b7c03e78baa
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Jul 03 06:39:22 2011 +0000
description:
- for m680[012]0, set cpu_type=m68k
- add fragment for m68010--netbsdelf
- s/*-*-netbsd/*-*-netbsd*/ so that netbsdelf matches
diffstat:
external/gpl3/gcc/dist/gcc/config.gcc | 23 ++++++++++++++++++-----
1 files changed, 18 insertions(+), 5 deletions(-)
diffs (48 lines):
diff -r 35ba689727d0 -r 2b7c03e78baa external/gpl3/gcc/dist/gcc/config.gcc
--- a/external/gpl3/gcc/dist/gcc/config.gcc Sun Jul 03 06:37:42 2011 +0000
+++ b/external/gpl3/gcc/dist/gcc/config.gcc Sun Jul 03 06:39:22 2011 +0000
@@ -326,6 +326,10 @@
m32r*-*-*)
cpu_type=m32r
;;
+m680[012]0-*-*)
+ cpu_type=m68k
+ extra_headers=math-68881.h
+ ;;
m68k-*-*)
extra_headers=math-68881.h
;;
@@ -1628,11 +1632,20 @@
esac
extra_parts="crtbegin.o crtend.o"
;;
-m68k*-*-netbsdelf*)
- default_m68k_cpu=68020
+m68010-*-netbsdelf* | m68k*-*-netbsdelf*)
+ tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h m68k/netbsd-elf.h"
+ tm_defines="${tm_defines} MOTOROLA=1 USE_GAS=1"
default_cf_cpu=5475
- tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h m68k/netbsd-elf.h"
- tm_defines="${tm_defines} MOTOROLA=1"
+ case ${target} in
+ m68010*)
+ target_cpu_default="0"
+ tmake_file=m68k/t-m68kelf
+ ;;
+ *)
+ target_cpu_default="MASK_68020|MASK_68881|MASK_BITFIELD"
+ #default_m68k_cpu=68020
+ ;;
+ esac
;;
m68k*-*-openbsd*)
default_m68k_cpu=68020
@@ -2283,7 +2296,7 @@
# SHmedia, 64-bit ABI
tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd sh/t-netbsd-sh5-64"
;;
- *-*-netbsd)
+ *-*-netbsd*)
tmake_file="${tmake_file} sh/t-netbsd"
;;
sh64*-*-linux*)
Home |
Main Index |
Thread Index |
Old Index