Revert "arc: Update ARC's Gnu Assembler backend with ARCv3 ISA."
This reverts commit f3d38d7d0b7346515ba603454feeddc58a3fc451.
This commit is contained in:
parent
3b7e24aa56
commit
6ba813bf38
@ -237,12 +237,6 @@
|
||||
/* Target alias. */
|
||||
#undef TARGET_ALIAS
|
||||
|
||||
/* Using ARCv3/32 architecture. */
|
||||
#undef TARGET_ARCv3_32
|
||||
|
||||
/* Using ARCv3/64 architecture. */
|
||||
#undef TARGET_ARCv3_64
|
||||
|
||||
/* Define as 1 if big endian. */
|
||||
#undef TARGET_BYTES_BIG_ENDIAN
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -34,11 +34,7 @@
|
||||
|
||||
/* This macro is the BFD architecture to pass to
|
||||
`bfd_set_arch_mach'. */
|
||||
#if defined (TARGET_ARCv3_64) || defined (TARGET_ARCv3_32)
|
||||
# define TARGET_ARCH bfd_arch_arc64
|
||||
#else
|
||||
# define TARGET_ARCH bfd_arch_arc
|
||||
#endif
|
||||
#define TARGET_ARCH bfd_arch_arc
|
||||
|
||||
/* The `extsym - .' expressions can be emitted using PC-relative
|
||||
relocs. */
|
||||
@ -52,33 +48,28 @@
|
||||
#undef BIG_ENDIAN
|
||||
#define BIG_ENDIAN 4321
|
||||
|
||||
#ifndef TARGET_BYTES_BIG_ENDIAN
|
||||
#ifdef TARGET_BYTES_BIG_ENDIAN
|
||||
|
||||
# define DEFAULT_TARGET_FORMAT "elf32-bigarc"
|
||||
# define DEFAULT_BYTE_ORDER BIG_ENDIAN
|
||||
|
||||
#else
|
||||
/* You should define this macro to be non-zero if the target is big
|
||||
endian, and zero if the target is little endian. */
|
||||
#define TARGET_BYTES_BIG_ENDIAN 0
|
||||
#endif
|
||||
# define TARGET_BYTES_BIG_ENDIAN 0
|
||||
|
||||
#ifdef TARGET_ARCv3_64
|
||||
# define DEFAULT_TARGET_FORMAT "elf64-littlearc64"
|
||||
# define DEFAULT_TARGET_FORMAT "elf32-littlearc"
|
||||
# define DEFAULT_BYTE_ORDER LITTLE_ENDIAN
|
||||
#elif defined (TARGET_ARCv3_32)
|
||||
# define DEFAULT_TARGET_FORMAT "elf64-littlearc32"
|
||||
# define DEFAULT_BYTE_ORDER LITTLE_ENDIAN
|
||||
#else
|
||||
# if TARGET_BYTES_BIG_ENDIAN == 1
|
||||
# define DEFAULT_TARGET_FORMAT "elf32-bigarc"
|
||||
# define DEFAULT_BYTE_ORDER BIG_ENDIAN
|
||||
# else
|
||||
# define DEFAULT_TARGET_FORMAT "elf32-littlearc"
|
||||
# define DEFAULT_BYTE_ORDER LITTLE_ENDIAN
|
||||
|
||||
#endif /* TARGET_BYTES_BIG_ENDIAN. */
|
||||
|
||||
#endif /* TARGET_ARCv3_64. */
|
||||
/* The endianness of the target format may change based on command
|
||||
line arguments. */
|
||||
extern const char *arc_target_format;
|
||||
|
||||
/* This macro is the BFD target name to use when creating the output
|
||||
file. This will normally depend upon the `OBJ_FMT' macro. */
|
||||
#define TARGET_FORMAT arc_target_format()
|
||||
extern const char *arc_target_format (void);
|
||||
#define TARGET_FORMAT arc_target_format
|
||||
|
||||
/* `md_short_jump_size'
|
||||
`md_long_jump_size'
|
||||
@ -112,6 +103,9 @@ extern const char *arc_target_format (void);
|
||||
fixp->fx_frag->fr_address. */
|
||||
#define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from_section (FIX, SEC)
|
||||
|
||||
/* [ ] is index operator. */
|
||||
#define NEED_INDEX_OPERATOR
|
||||
|
||||
#define MAX_MEM_FOR_RS_ALIGN_CODE (1+2)
|
||||
|
||||
/* HANDLE_ALIGN called after all the assembly has been done,
|
||||
@ -137,7 +131,6 @@ extern const char *arc_target_format (void);
|
||||
#define TC_VALIDATE_FIX(FIXP,SEG,SKIP) \
|
||||
if ((FIXP->fx_r_type == BFD_RELOC_ARC_GOTPC32 \
|
||||
|| FIXP->fx_r_type == BFD_RELOC_ARC_PLT32 \
|
||||
|| FIXP->fx_r_type == BFD_RELOC_ARC_PLT34 \
|
||||
|| FIXP->fx_r_type == BFD_RELOC_ARC_S25W_PCREL_PLT \
|
||||
|| FIXP->fx_r_type == BFD_RELOC_ARC_S25H_PCREL_PLT \
|
||||
|| FIXP->fx_r_type == BFD_RELOC_ARC_S21W_PCREL_PLT \
|
||||
@ -243,11 +236,6 @@ struct arc_flags
|
||||
|
||||
/* Pointer to arc flags. */
|
||||
const struct arc_flag_operand *flgp;
|
||||
|
||||
/* Pointer to insert function. */
|
||||
unsigned long long (*insert) (unsigned long long instruction,
|
||||
long long int op,
|
||||
const char **errmsg);
|
||||
};
|
||||
|
||||
extern const relax_typeS md_relax_table[];
|
||||
|
14
gas/configure
vendored
14
gas/configure
vendored
@ -12099,18 +12099,6 @@ cat >>confdefs.h <<_ACEOF
|
||||
#define DEFAULT_CRIS_ARCH $arch
|
||||
_ACEOF
|
||||
|
||||
;;
|
||||
arc64)
|
||||
# Set for which architecture we compile
|
||||
|
||||
$as_echo "#define TARGET_ARCv3_64 1" >>confdefs.h
|
||||
|
||||
;;
|
||||
arc32)
|
||||
# Set for which architecture we compile
|
||||
|
||||
$as_echo "#define TARGET_ARCv3_32 1" >>confdefs.h
|
||||
|
||||
;;
|
||||
esac
|
||||
|
||||
@ -12535,7 +12523,7 @@ $as_echo "#define NDS32_DEFAULT_ZOL_EXT 1" >>confdefs.h
|
||||
$as_echo "$enable_zol_ext" >&6; }
|
||||
;;
|
||||
|
||||
aarch64 | i386 | s390 | sparc | arc)
|
||||
aarch64 | i386 | s390 | sparc)
|
||||
if test $this_target = $target ; then
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
|
@ -235,14 +235,6 @@ for this_target in $target $canon_targets ; do
|
||||
AC_DEFINE_UNQUOTED(DEFAULT_CRIS_ARCH, $arch,
|
||||
[Default CRIS architecture.])
|
||||
;;
|
||||
arc64)
|
||||
# Set for which architecture we compile
|
||||
AC_DEFINE(TARGET_ARCv3_64, 1, [Using ARCv3/64 architecture.])
|
||||
;;
|
||||
arc32)
|
||||
# Set for which architecture we compile
|
||||
AC_DEFINE(TARGET_ARCv3_32, 1, [Using ARCv3/32 architecture.])
|
||||
;;
|
||||
esac
|
||||
|
||||
if test ${this_target} = $target ; then
|
||||
@ -614,7 +606,7 @@ changequote([,])dnl
|
||||
AC_MSG_RESULT($enable_zol_ext)
|
||||
;;
|
||||
|
||||
aarch64 | i386 | s390 | sparc | arc)
|
||||
aarch64 | i386 | s390 | sparc)
|
||||
if test $this_target = $target ; then
|
||||
AC_DEFINE_UNQUOTED(DEFAULT_ARCH, "${arch}", [Default architecture.])
|
||||
fi
|
||||
|
@ -50,9 +50,7 @@ case ${cpu} in
|
||||
aarch64_be) cpu_type=aarch64 endian=big arch=aarch64;;
|
||||
alpha*) cpu_type=alpha ;;
|
||||
am33_2.0) cpu_type=mn10300 endian=little ;;
|
||||
arc64|arc32) cpu_type=arc arch=arc64 endian=little ;;
|
||||
arceb) cpu_type=arc arch=arc endian=big ;;
|
||||
arc) cpu_type=arc arch=arc endian=little ;;
|
||||
arc*eb) cpu_type=arc endian=big ;;
|
||||
arm*be|arm*b) cpu_type=arm endian=big ;;
|
||||
arm*) cpu_type=arm endian=little ;;
|
||||
bfin*) cpu_type=bfin endian=little ;;
|
||||
@ -147,7 +145,6 @@ case ${generic_target} in
|
||||
alpha-*-netbsd* | alpha-*-openbsd*) fmt=elf em=nbsd ;;
|
||||
|
||||
arc-*-elf*) fmt=elf ;;
|
||||
arc64-*-* | arc32-*-*) fmt=elf ;;
|
||||
arc*-*-linux*) fmt=elf bfd_gas=yes ;;
|
||||
|
||||
arm-*-phoenix*) fmt=elf ;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user