mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 05:13:35 +08:00
ee3c0378c3
gas/ * config/tc-arm.c (attributes_set_explicitly): New array. (s_arm_eabi_attribute): Check return value from s_vendor_attribute. (cpu_arch): Add ARM_ARCH_V5T. (aeabi_set_attribute_int): New function. (aeabi_set_attribute_string): New function. (aeabi_set_public_attributes): Set attributes according to the user's intentions, rather than the actual state of the binary. Use aeabi_set_attribute_int and aeabi_set_attribute_string instead of bfd_elf_add_proc_attr_int and bfd_elf_add_proc_attr_string. Support WMMXv2. Use attribute names instead of numbers. * read.c (s_vendor_attribute): Change return type to int. Return the tag number that was set. * read.h (s_vendor_attribute): Change return type to int. gas/testsuite/ * gas/arm/attr-cpu-directive.d: New file. * gas/arm/attr-cpu-directive.s: New file. * gas/arm/attr-default.d: New file. * gas/arm/attr-march-all.d: New file. * gas/arm/attr-march-armv1.d: New file. * gas/arm/attr-march-armv2.d: New file. * gas/arm/attr-march-armv2a.d: New file. * gas/arm/attr-march-armv2s.d: New file. * gas/arm/attr-march-armv3.d: New file. * gas/arm/attr-march-armv3m.d: New file. * gas/arm/attr-march-armv4.d: New file. * gas/arm/attr-march-armv4t.d: New file. * gas/arm/attr-march-armv4txm.d: New file. * gas/arm/attr-march-armv4xm.d: New file. * gas/arm/attr-march-armv5.d: New file. * gas/arm/attr-march-armv5t.d: New file. * gas/arm/attr-march-armv5te.d: New file. * gas/arm/attr-march-armv5tej.d: New file. * gas/arm/attr-march-armv5texp.d: New file. * gas/arm/attr-march-armv5txm.d: New file. * gas/arm/attr-march-armv6-m.d: New file. * gas/arm/attr-march-armv6.d: New file. * gas/arm/attr-march-armv6j.d: New file. * gas/arm/attr-march-armv6k.d: New file. * gas/arm/attr-march-armv6kt2.d: New file. * gas/arm/attr-march-armv6t2.d: New file. * gas/arm/attr-march-armv6z.d: New file. * gas/arm/attr-march-armv6zk.d: New file. * gas/arm/attr-march-armv6zkt2.d: New file. * gas/arm/attr-march-armv6zt2.d: New file. * gas/arm/attr-march-armv7-a.d: New file. * gas/arm/attr-march-armv7-m.d: New file. * gas/arm/attr-march-armv7-r.d: New file. * gas/arm/attr-march-armv7.d: New file. * gas/arm/attr-march-armv7a.d: New file. * gas/arm/attr-march-armv7m.d: New file. * gas/arm/attr-march-armv7r.d: New file. * gas/arm/attr-march-iwmmxt.d: New file. * gas/arm/attr-march-iwmmxt2.d: New file. * gas/arm/attr-march-xscale.d: New file. * gas/arm/attr-mcpu.d: New file. * gas/arm/attr-mfpu-arm1020e.d: New file. * gas/arm/attr-mfpu-arm1020t.d: New file. * gas/arm/attr-mfpu-arm1136jf-s.d: New file. * gas/arm/attr-mfpu-arm1136jfs.d: New file. * gas/arm/attr-mfpu-arm7500fe.d: New file. * gas/arm/attr-mfpu-fpa.d: New file. * gas/arm/attr-mfpu-fpa10.d: New file. * gas/arm/attr-mfpu-fpa11.d: New file. * gas/arm/attr-mfpu-fpe.d: New file. * gas/arm/attr-mfpu-fpe2.d: New file. * gas/arm/attr-mfpu-fpe3.d: New file. * gas/arm/attr-mfpu-maverick.d: New file. * gas/arm/attr-mfpu-neon-fp16.d: New file. * gas/arm/attr-mfpu-neon.d: New file. * gas/arm/attr-mfpu-softfpa.d: New file. * gas/arm/attr-mfpu-softvfp+vfp.d: New file. * gas/arm/attr-mfpu-softvfp.d: New file. * gas/arm/attr-mfpu-vfp.d: New file. * gas/arm/attr-mfpu-vfp10-r0.d: New file. * gas/arm/attr-mfpu-vfp10.d: New file. * gas/arm/attr-mfpu-vfp3.d: New file. * gas/arm/attr-mfpu-vfp9.d: New file. * gas/arm/attr-mfpu-vfpv2.d: New file. * gas/arm/attr-mfpu-vfpv3-d16.d: New file. * gas/arm/attr-mfpu-vfpv3.d: New file. * gas/arm/attr-mfpu-vfpxd.d: New file. * gas/arm/attr-order.d: Update Tag_ARM_ISA_use and Tag_THUMB_ISA_use. * gas/arm/attr-override-cpu-directive.d: New file. * gas/arm/attr-override-cpu-directive.s: New file. * gas/arm/attr-override-mcpu.d: New file. * gas/arm/attr-override-mcpu.s: New file. * gas/arm/blank.s: New file. * gas/arm/eabi_attr_1.d: Update Tag_ARM_ISA_use and Tag_THUMB_ISA_use. ld/testsuite/ * ld-arm/attr-merge-3.attr: Update following gas change. * ld-arm/attr-merge-2.attr: Update Tag_ARM_ISA_use and Tag_THUMB_ISA_use following gas changes. * ld-arm/attr-merge-4.attr: Likewise. * ld-arm/attr-merge-5.attr: Likewise. * ld-arm/attr-merge-arch-1.attr: Likewise. * ld-arm/attr-merge-arch-2.attr: Likewise. * ld-arm/attr-merge-unknown-2.d: Likewise. * ld-arm/attr-merge-unknown-2r.d: Likewise. * ld-arm/attr-merge-unknown-3.d: Likewise. * ld-arm/attr-merge-wchar-00-nowarn.d: Likewise. * ld-arm/attr-merge-wchar-00.d: Likewise. * ld-arm/attr-merge-wchar-02-nowarn.d: Likewise. * ld-arm/attr-merge-wchar-02.d: Likewise. * ld-arm/attr-merge-wchar-04-nowarn.d: Likewise. * ld-arm/attr-merge-wchar-04.d: Likewise. * ld-arm/attr-merge-wchar-20-nowarn.d: Likewise. * ld-arm/attr-merge-wchar-20.d: Likewise. * ld-arm/attr-merge-wchar-22-nowarn.d: Likewise. * ld-arm/attr-merge-wchar-22.d: Likewise. * ld-arm/attr-merge-wchar-24-nowarn.d: Likewise. * ld-arm/attr-merge-wchar-40-nowarn.d: Likewise. * ld-arm/attr-merge-wchar-40.d: Likewise. * ld-arm/attr-merge-wchar-42-nowarn.d: Likewise. * ld-arm/attr-merge-wchar-44-nowarn.d: Likewise. * ld-arm/attr-merge-wchar-44.d: Likewise. * ld-arm/attr-merge.attr: Likewise.
191 lines
6.4 KiB
C
191 lines
6.4 KiB
C
/* read.h - of read.c
|
|
Copyright 1986, 1990, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
|
2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008
|
|
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 3, 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, 51 Franklin Street - Fifth Floor, Boston, MA
|
|
02110-1301, USA. */
|
|
|
|
extern char *input_line_pointer; /* -> char we are parsing now. */
|
|
|
|
/* Define to make whitespace be allowed in many syntactically
|
|
unnecessary places. Normally undefined. For compatibility with
|
|
ancient GNU cc. */
|
|
/* #undef PERMIT_WHITESPACE */
|
|
#define PERMIT_WHITESPACE
|
|
|
|
#ifdef PERMIT_WHITESPACE
|
|
#define SKIP_WHITESPACE() \
|
|
((*input_line_pointer == ' ') ? ++input_line_pointer : 0)
|
|
#else
|
|
#define SKIP_WHITESPACE() know(*input_line_pointer != ' ' )
|
|
#endif
|
|
|
|
#define LEX_NAME (1) /* may continue a name */
|
|
#define LEX_BEGIN_NAME (2) /* may begin a name */
|
|
#define LEX_END_NAME (4) /* ends a name */
|
|
|
|
#define is_name_beginner(c) \
|
|
( lex_type[(unsigned char) (c)] & LEX_BEGIN_NAME )
|
|
#define is_part_of_name(c) \
|
|
( lex_type[(unsigned char) (c)] & LEX_NAME )
|
|
#define is_name_ender(c) \
|
|
( lex_type[(unsigned char) (c)] & LEX_END_NAME )
|
|
|
|
#ifndef is_a_char
|
|
#define CHAR_MASK (0xff)
|
|
#define NOT_A_CHAR (CHAR_MASK+1)
|
|
#define is_a_char(c) (((unsigned) (c)) <= CHAR_MASK)
|
|
#endif /* is_a_char() */
|
|
|
|
extern char lex_type[];
|
|
extern char is_end_of_line[];
|
|
|
|
extern int is_it_end_of_statement (void);
|
|
extern char *find_end_of_line (char *, int);
|
|
|
|
extern int target_big_endian;
|
|
|
|
/* These are initialized by the CPU specific target files (tc-*.c). */
|
|
extern const char comment_chars[];
|
|
extern const char line_comment_chars[];
|
|
extern const char line_separator_chars[];
|
|
|
|
/* Table of -I directories. */
|
|
extern char **include_dirs;
|
|
extern int include_dir_count;
|
|
extern int include_dir_maxlen;
|
|
|
|
/* The offset in the absolute section. */
|
|
extern addressT abs_section_offset;
|
|
|
|
/* The label on a line, used by some of the pseudo-ops. */
|
|
extern symbolS *line_label;
|
|
|
|
/* This is used to support MRI common sections. */
|
|
extern symbolS *mri_common_symbol;
|
|
|
|
/* True if a stabs line debug statement is currently being emitted. */
|
|
extern int outputting_stabs_line_debug;
|
|
|
|
/* Possible arguments to .linkonce. */
|
|
enum linkonce_type {
|
|
LINKONCE_UNSET = 0,
|
|
LINKONCE_DISCARD,
|
|
LINKONCE_ONE_ONLY,
|
|
LINKONCE_SAME_SIZE,
|
|
LINKONCE_SAME_CONTENTS
|
|
};
|
|
|
|
#ifndef TC_CASE_SENSITIVE
|
|
extern char original_case_string[];
|
|
#endif
|
|
|
|
extern void pop_insert (const pseudo_typeS *);
|
|
extern unsigned int get_stab_string_offset
|
|
(const char *string, const char *stabstr_secname);
|
|
extern void aout_process_stab (int, const char *, int, int, int);
|
|
extern char *demand_copy_string (int *lenP);
|
|
extern char *demand_copy_C_string (int *len_pointer);
|
|
extern char get_absolute_expression_and_terminator (long *val_pointer);
|
|
extern offsetT get_absolute_expression (void);
|
|
extern unsigned int next_char_of_string (void);
|
|
extern void s_mri_sect (char *);
|
|
extern char *mri_comment_field (char *);
|
|
extern void mri_comment_end (char *, int);
|
|
extern void add_include_dir (char *path);
|
|
extern void cons (int nbytes);
|
|
extern void demand_empty_rest_of_line (void);
|
|
extern void emit_expr (expressionS *exp, unsigned int nbytes);
|
|
extern void emit_expr_fix (expressionS *, unsigned int, fragS *, char *);
|
|
extern void equals (char *sym_name, int reassign);
|
|
extern void float_cons (int float_type);
|
|
extern void ignore_rest_of_line (void);
|
|
#define discard_rest_of_line ignore_rest_of_line
|
|
extern int output_leb128 (char *, valueT, int sign);
|
|
extern void pseudo_set (symbolS * symbolP);
|
|
extern void read_a_source_file (char *name);
|
|
extern void read_begin (void);
|
|
extern void read_print_statistics (FILE *);
|
|
extern int sizeof_leb128 (valueT, int sign);
|
|
extern void stabs_generate_asm_file (void);
|
|
extern void stabs_generate_asm_lineno (void);
|
|
extern void stabs_generate_asm_func (const char *, const char *);
|
|
extern void stabs_generate_asm_endfunc (const char *, const char *);
|
|
extern void do_repeat (int,const char *,const char *);
|
|
extern void end_repeat (int);
|
|
extern void do_parse_cons_expression (expressionS *, int);
|
|
|
|
extern void generate_lineno_debug (void);
|
|
|
|
extern void s_abort (int) ATTRIBUTE_NORETURN;
|
|
extern void s_align_bytes (int arg);
|
|
extern void s_align_ptwo (int);
|
|
extern void bss_alloc (symbolS *, addressT, int);
|
|
extern offsetT parse_align (int);
|
|
extern symbolS *s_comm_internal (int, symbolS *(*) (int, symbolS *, addressT));
|
|
extern symbolS *s_lcomm_internal (int, symbolS *, addressT);
|
|
extern void s_app_file_string (char *, int);
|
|
extern void s_app_file (int);
|
|
extern void s_app_line (int);
|
|
extern void s_comm (int);
|
|
extern void s_data (int);
|
|
extern void s_desc (int);
|
|
extern void s_else (int arg);
|
|
extern void s_elseif (int arg);
|
|
extern void s_end (int arg);
|
|
extern void s_endif (int arg);
|
|
extern void s_err (int);
|
|
extern void s_errwarn (int);
|
|
extern void s_fail (int);
|
|
extern void s_fill (int);
|
|
extern void s_float_space (int mult);
|
|
extern void s_func (int);
|
|
extern void s_globl (int arg);
|
|
extern void s_if (int arg);
|
|
extern void s_ifb (int arg);
|
|
extern void s_ifc (int arg);
|
|
extern void s_ifdef (int arg);
|
|
extern void s_ifeqs (int arg);
|
|
extern void s_ignore (int arg);
|
|
extern void s_include (int arg);
|
|
extern void s_irp (int arg);
|
|
extern void s_lcomm (int needs_align);
|
|
extern void s_lcomm_bytes (int needs_align);
|
|
extern void s_leb128 (int sign);
|
|
extern void s_linkonce (int);
|
|
extern void s_lsym (int);
|
|
extern void s_macro (int);
|
|
extern void s_mexit (int);
|
|
extern void s_mri (int);
|
|
extern void s_mri_common (int);
|
|
extern void s_org (int);
|
|
extern void s_print (int);
|
|
extern void s_purgem (int);
|
|
extern void s_rept (int);
|
|
extern void s_set (int);
|
|
extern void s_space (int mult);
|
|
extern void s_stab (int what);
|
|
extern void s_struct (int);
|
|
extern void s_text (int);
|
|
extern void stringer (int append_zero);
|
|
extern void s_xstab (int what);
|
|
extern void s_rva (int);
|
|
extern void s_incbin (int);
|
|
extern int s_vendor_attribute (int);
|
|
extern void s_weakref (int);
|