* NOTES.config (Implementation): as.h #define's "GAS" not "gas",
includes config.h instead of host.h, tc.h instead of tp.h, and targ-env.h instead of target-environment.h. Also, obj-format.h includes targ-cpu.h instead of target-processor.h. start-sanitize-tic80 (Laying groundwork, that will be incrementally fleshed out, for TIc80 support) * configure.in (case ${generic_target}): Add tic80-*-coff entry. * configure: Rebuild with autoconf. * config/obj-coff.h (coff/tic80.h): Include if TC_TIC80 defined. (TARGET_FORMAT): Define to "coff-tic80". * config/tc-tic80.c: New file for TIc80 support. * config/tc-tic80.h: New file for TIc80 support. end-sanitize-tic80
This commit is contained in:
parent
6357e7f68e
commit
6455664321
|
@ -217,6 +217,34 @@ else
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
tic80_files="ChangeLog configure.in configure"
|
||||||
|
if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
|
||||||
|
for i in $tic80_files ; do
|
||||||
|
if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
|
||||||
|
if [ -n "${verbose}" ] ; then
|
||||||
|
echo Keeping tic80 stuff in $i
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
else
|
||||||
|
for i in $tic80_files ; do
|
||||||
|
if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
|
||||||
|
if [ -n "${verbose}" ] ; then
|
||||||
|
echo Removing traces of \"tic80\" from $i...
|
||||||
|
fi
|
||||||
|
cp $i new
|
||||||
|
sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
|
||||||
|
if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
|
||||||
|
if [ -n "${verbose}" ] ; then
|
||||||
|
echo Caching $i in .Recover...
|
||||||
|
fi
|
||||||
|
mv $i .Recover
|
||||||
|
fi
|
||||||
|
mv new $i
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
for i in * ; do
|
for i in * ; do
|
||||||
if test ! -d $i && (grep sanitize $i > /dev/null) ; then
|
if test ! -d $i && (grep sanitize $i > /dev/null) ; then
|
||||||
echo '***' Some mentions of Sanitize are still left in $i! 1>&2
|
echo '***' Some mentions of Sanitize are still left in $i! 1>&2
|
||||||
|
|
|
@ -1,3 +1,19 @@
|
||||||
|
Fri Dec 27 22:51:51 1996 Fred Fish <fnf@cygnus.com>
|
||||||
|
|
||||||
|
* NOTES.config (Implementation): as.h #define's "GAS" not "gas",
|
||||||
|
includes config.h instead of host.h, tc.h instead of tp.h, and
|
||||||
|
targ-env.h instead of target-environment.h.
|
||||||
|
Also, obj-format.h includes targ-cpu.h instead of
|
||||||
|
target-processor.h.
|
||||||
|
start-sanitize-tic80
|
||||||
|
* configure.in (case ${generic_target}): Add tic80-*-coff entry.
|
||||||
|
* configure: Rebuild with autoconf.
|
||||||
|
* config/obj-coff.h (coff/tic80.h): Include if TC_TIC80 defined.
|
||||||
|
(TARGET_FORMAT): Define to "coff-tic80".
|
||||||
|
* config/tc-tic80.c: New file for TIc80 support.
|
||||||
|
* config/tc-tic80.h: New file for TIc80 support.
|
||||||
|
end-sanitize-tic80
|
||||||
|
|
||||||
Fri Dec 27 11:42:29 1996 Ian Lance Taylor <ian@cygnus.com>
|
Fri Dec 27 11:42:29 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
* doc/as.texinfo (M): Mention explicitly that -M changes macro
|
* doc/as.texinfo (M): Mention explicitly that -M changes macro
|
||||||
|
|
|
@ -21,20 +21,20 @@ obj-format.h is a {sym}link to .../config/obj-something.h. It is intended
|
||||||
|
|
||||||
All gas .c files include as.h.
|
All gas .c files include as.h.
|
||||||
|
|
||||||
as.h #define's "gas", includes host.h, defines a number of gas
|
as.h #define's "GAS", includes config.h, defines a number of gas
|
||||||
specific structures and types, and then includes tp.h, obj.h, and
|
specific structures and types, and then includes tc.h, obj.h, and
|
||||||
target-environment.h.
|
targ-env.h.
|
||||||
|
|
||||||
target-environment.h defines a target environment specific
|
targ-env.h defines a target environment specific preprocessor flag,
|
||||||
preprocessor flag, eg, TE_SUN, and then includes obj-format.h.
|
eg, TE_SUN, and then includes obj-format.h.
|
||||||
|
|
||||||
obj-format.h defines an object format specific preprocessor flag, eg,
|
obj-format.h defines an object format specific preprocessor flag, eg,
|
||||||
OBJ_AOUT, OBJ_BOUT, OBJ_COFF, includes "target-processor.h", and then
|
OBJ_AOUT, OBJ_BOUT, OBJ_COFF, includes "targ-cpu.h", and then defines
|
||||||
defines the object specific macros, functions, types, and structures.
|
the object specific macros, functions, types, and structures.
|
||||||
|
|
||||||
target-processor.h
|
targ-cpu.h
|
||||||
|
|
||||||
target-processor.
|
targ-cpu.c
|
||||||
|
|
||||||
Porting:
|
Porting:
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,13 @@ else
|
||||||
lose_these_too="${v850_files} ${lose_these_too}"
|
lose_these_too="${v850_files} ${lose_these_too}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
tic80_files="tc-tic80.c tc-tic80.h"
|
||||||
|
|
||||||
|
if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
|
||||||
|
keep_these_too="${tic80_files} ${keep_these_too}"
|
||||||
|
else
|
||||||
|
lose_these_too="${tic80_files} ${lose_these_too}"
|
||||||
|
fi
|
||||||
|
|
||||||
# All files listed between the "Things-to-keep:" line and the
|
# All files listed between the "Things-to-keep:" line and the
|
||||||
# "Files-to-sed:" line will be kept. All other files will be removed.
|
# "Files-to-sed:" line will be kept. All other files will be removed.
|
||||||
|
|
|
@ -0,0 +1,46 @@
|
||||||
|
/* tc-tic80.c -- Assemble for the TI TMS320C80 (MV)
|
||||||
|
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
This file is part of GAS, the GNU Assembler.
|
||||||
|
|
||||||
|
GAS 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.
|
||||||
|
|
||||||
|
GAS 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 GAS; see the file COPYING. If not, write to the Free
|
||||||
|
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||||
|
02111-1307, USA. */
|
||||||
|
|
||||||
|
#include "as.h"
|
||||||
|
#include "opcode/tic80.h"
|
||||||
|
|
||||||
|
|
||||||
|
/* Generic assembler global variables which must be defined by all targets. */
|
||||||
|
|
||||||
|
/* Characters which always start a comment. */
|
||||||
|
const char comment_chars[] = ";";
|
||||||
|
|
||||||
|
/* Characters which start a comment at the beginning of a line. */
|
||||||
|
const char line_comment_chars[] = ";*";
|
||||||
|
|
||||||
|
/* Characters which may be used to separate multiple commands on a
|
||||||
|
single line. */
|
||||||
|
const char line_separator_chars[] = ";";
|
||||||
|
|
||||||
|
/* Characters which are used to indicate an exponent in a floating
|
||||||
|
point number. */
|
||||||
|
const char EXP_CHARS[] = "eE";
|
||||||
|
|
||||||
|
/* Characters which mean that a number is a floating point constant,
|
||||||
|
as in 0d1.0. */
|
||||||
|
const char FLT_CHARS[] = "dD";
|
||||||
|
|
||||||
|
|
||||||
|
/* end of tc-tic80.c */
|
|
@ -0,0 +1,27 @@
|
||||||
|
/* This file is tc-tic80.h
|
||||||
|
|
||||||
|
Copyright (C) 1996, Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
This file is part of GAS, the GNU Assembler.
|
||||||
|
|
||||||
|
GAS 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.
|
||||||
|
|
||||||
|
GAS 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 GAS; see the file COPYING. If not, write to
|
||||||
|
the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
|
#define TC_TIC80
|
||||||
|
|
||||||
|
#define TARGET_ARCH bfd_arch_tic80
|
||||||
|
#define BFD_ARCH TARGET_ARCH
|
||||||
|
#define COFF_MAGIC TIC80MAGIC
|
||||||
|
|
||||||
|
/* end of tc-tic80.h */
|
File diff suppressed because it is too large
Load Diff
|
@ -63,7 +63,9 @@ emulations=""
|
||||||
|
|
||||||
for this_target in $target $canon_targets ; do
|
for this_target in $target $canon_targets ; do
|
||||||
|
|
||||||
eval `echo $this_target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
|
changequote(,)dnl
|
||||||
|
eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
|
||||||
|
changequote([,])dnl
|
||||||
|
|
||||||
# check for architecture variants
|
# check for architecture variants
|
||||||
case ${cpu} in
|
case ${cpu} in
|
||||||
|
@ -287,6 +289,9 @@ changequote([,])dnl
|
||||||
fmt=elf ;;
|
fmt=elf ;;
|
||||||
sparc-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
|
sparc-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
|
||||||
|
|
||||||
|
# start-sanitize-tic80
|
||||||
|
tic80-*-coff) fmt=coff targ=tic80coff;;
|
||||||
|
# end-sanitize-tic80
|
||||||
v850-*-*) fmt=elf bfd_gas=yes ;;
|
v850-*-*) fmt=elf bfd_gas=yes ;;
|
||||||
|
|
||||||
vax-*-bsd* | vax-*-ultrix*)
|
vax-*-bsd* | vax-*-ultrix*)
|
||||||
|
|
Loading…
Reference in New Issue