8sa1-binutils-gdb/include/opcode/arc-attrs.h
Alan Modra bd38246a45 Constify more arrays
bfd/
	* coff-z80.c (bfd_howto_type): Make typedef const.
	* elf32-z80.c (bfd_howto_type): Likewise.
	* elf32-m32c.c (EncodingTable): Likewise.
	* elf32-csky.c (csky_arch_for_merge): Likewise.
	(csky_archs): Use typedef.
	* elf32-m68hc11.c (m68hc11_direct_relax_table): Make const.
	(find_relaxable_insn, m68hc11_elf_relax_section): Adjust to suit.
	* elf32-ppc.c (ppc_alt_plt): Make const.
	* elf32-rl78.c (relax_addr16): Likewise.
	* targets.c (_bfd_associated_vector): Likewise.
	(bfd_target_vector, bfd_associated_vector): Likewise.
	* libbfd-in.h (bfd_target_vector, bfd_associated_vector): Likewise.
	* libbfd.h: Regenerate.
include/
	* opcode/arc-attrs.h (CONFLICT_LIST): Make const.
2020-12-18 10:34:16 +10:30

73 lines
2.5 KiB
C

/* Copyright (C) 1994-2020 Free Software Foundation, Inc.
Contributed by Claudiu Zissulescu (claziss@synopsys.com)
This file is part of GAS, the GNU Assembler, GDB, the GNU debugger, and
the GNU Binutils.
GAS/GDB 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 3, or (at your option)
any later version.
GAS/GDB 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 or GDB; see the file COPYING3. If not, write to
the Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
MA 02110-1301, USA. */
#ifndef ATTRS_ARC_H
#define ATTRS_ARC_H
#ifndef FEATURE_LIST_NAME
#define FEATURE_LIST_NAME feature_list
#endif
/* A table with cpu features. */
const struct feature_type
{
unsigned feature;
unsigned cpus;
const char *attr;
const char *name;
} FEATURE_LIST_NAME [] =
{
{ BTSCN, ARC_OPCODE_ARCALL, "BITSCAN", "bit-scan" },
{ CD, ARC_OPCODE_ARCV2, "CD", "code-density" },
{ DIV, ARC_OPCODE_ARCV2, "DIV_REM", "div/rem" },
{ DP, ARC_OPCODE_ARCv2HS, "FPUD", "double-precision FPU" },
{ DPA, ARC_OPCODE_ARCv2EM, "FPUDA", "double assist FP" },
{ DPX, ARC_OPCODE_ARCFPX, "DPFP", "double-precision FPX" },
{ LL64, ARC_OPCODE_ARCv2HS, "LL64", "double load/store" },
{ NPS400, ARC_OPCODE_ARC700, "NPS400", "nps400" },
{ QUARKSE1, ARC_OPCODE_ARCv2EM, "QUARKSE1", "QuarkSE-EM" },
{ QUARKSE2, ARC_OPCODE_ARCv2EM, "QUARKSE2", "QuarkSE-EM" },
{ SHFT1, ARC_OPCODE_ARCALL, "SA", "shift assist" },
{ SHFT2, ARC_OPCODE_ARCALL, "BS", "barrel-shifter" },
{ SWAP, ARC_OPCODE_ARCALL, "SWAP", "swap" },
{ SP, ARC_OPCODE_ARCV2, "FPUS", "single-precision FPU" },
{ SPX, ARC_OPCODE_ARCFPX, "SPFP", "single-precision FPX" }
};
#ifndef CONFLICT_LIST
#define CONFLICT_LIST conflict_list
#endif
/* A table with conflicting features. */
const unsigned CONFLICT_LIST [] = {
NPS400 | SPX,
NPS400 | DPX,
DPX | DPA,
SP | DPX,
SP | SPX,
DP | DPX,
DP | SPX,
QUARKSE1 | DP,
QUARKSE1 | SP
};
#endif