projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add ability to change linker warning messages into errors when reporting executable...
[binutils-gdb.git]
/
gas
/
read.h
diff --git
a/gas/read.h
b/gas/read.h
index fa888adc37f1538d0b07fadc06da7f1709645d6f..523a6e8af434d43234615f04654935e44c7e37b2 100644
(file)
--- a/
gas/read.h
+++ b/
gas/read.h
@@
-1,7
+1,5
@@
/* read.h - of read.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.
+ Copyright (C) 1986-2023 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
This file is part of GAS, the GNU Assembler.
@@
-21,6
+19,7
@@
02110-1301, USA. */
extern char *input_line_pointer; /* -> char we are parsing now. */
02110-1301, USA. */
extern char *input_line_pointer; /* -> char we are parsing now. */
+extern bool input_from_string;
/* Define to make whitespace be allowed in many syntactically
unnecessary places. Normally undefined. For compatibility with
/* Define to make whitespace be allowed in many syntactically
unnecessary places. Normally undefined. For compatibility with
@@
-31,10
+30,23
@@
extern char *input_line_pointer; /* -> char we are parsing now. */
#ifdef PERMIT_WHITESPACE
#define SKIP_WHITESPACE() \
((*input_line_pointer == ' ') ? ++input_line_pointer : 0)
#ifdef PERMIT_WHITESPACE
#define SKIP_WHITESPACE() \
((*input_line_pointer == ' ') ? ++input_line_pointer : 0)
+#define SKIP_ALL_WHITESPACE() \
+ while (*input_line_pointer == ' ') ++input_line_pointer
#else
#else
-#define SKIP_WHITESPACE() know(*input_line_pointer != ' ' )
+#define SKIP_WHITESPACE() know (*input_line_pointer != ' ' )
+#define SKIP_ALL_WHITESPACE() SKIP_WHITESPACE()
#endif
#endif
+#define SKIP_WHITESPACE_AFTER_NAME() \
+ do \
+ { \
+ if (* input_line_pointer == '"') \
+ ++ input_line_pointer; \
+ if (* input_line_pointer == ' ') \
+ ++ input_line_pointer; \
+ } \
+ while (0)
+
#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 LEX_NAME (1) /* may continue a name */
#define LEX_BEGIN_NAME (2) /* may begin a name */
#define LEX_END_NAME (4) /* ends a name */
@@
-66,9
+78,9
@@
extern const char line_comment_chars[];
extern const char line_separator_chars[];
/* Table of -I directories. */
extern const char line_separator_chars[];
/* Table of -I directories. */
-extern char **include_dirs;
-extern
in
t include_dir_count;
-extern
in
t include_dir_maxlen;
+extern c
onst c
har **include_dirs;
+extern
size_
t include_dir_count;
+extern
size_
t include_dir_maxlen;
/* The offset in the absolute section. */
extern addressT abs_section_offset;
/* The offset in the absolute section. */
extern addressT abs_section_offset;
@@
-95,9
+107,13
@@
enum linkonce_type {
extern char original_case_string[];
#endif
extern char original_case_string[];
#endif
+#ifndef TC_PARSE_CONS_RETURN_TYPE
+#define TC_PARSE_CONS_RETURN_TYPE bfd_reloc_code_real_type
+#define TC_PARSE_CONS_RETURN_NONE BFD_RELOC_NONE
+#endif
+
extern void pop_insert (const pseudo_typeS *);
extern void pop_insert (const pseudo_typeS *);
-extern unsigned int get_stab_string_offset
- (const char *string, const char *stabstr_secname);
+extern unsigned int get_stab_string_offset (const char *, segT);
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 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);
@@
-107,26
+123,36
@@
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 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 init_include_dir (void);
+extern void add_include_dir (char *);
+extern FILE *search_and_open (const char *, char *);
extern void cons (int nbytes);
extern void demand_empty_rest_of_line (void);
extern void emit_expr (expressionS *exp, unsigned int nbytes);
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 emit_expr_with_reloc (expressionS *exp, unsigned int nbytes,
+ TC_PARSE_CONS_RETURN_TYPE);
+extern void emit_expr_fix (expressionS *, unsigned int, fragS *, char *,
+ TC_PARSE_CONS_RETURN_TYPE);
+extern void emit_leb128_expr (expressionS *, int);
+extern void equals (char *, int);
+extern void float_cons (int);
extern void ignore_rest_of_line (void);
#define discard_rest_of_line ignore_rest_of_line
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
unsigned output_leb128 (char *, valueT, int
);
extern void pseudo_set (symbolS * symbolP);
extern void pseudo_set (symbolS * symbolP);
-extern void read_a_source_file (char *name);
+extern void read_a_source_file (c
onst c
har *name);
extern void read_begin (void);
extern void read_begin (void);
+extern void read_end (void);
extern void read_print_statistics (FILE *);
extern void read_print_statistics (FILE *);
-extern int sizeof_leb128 (valueT, int sign);
+extern char *read_symbol_name (void);
+extern unsigned sizeof_leb128 (valueT, int);
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 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 stabs_begin (void);
+extern void stabs_end (void);
+extern void do_repeat (size_t, const char *, const char *, const char *);
extern void end_repeat (int);
extern void do_parse_cons_expression (expressionS *, int);
extern void end_repeat (int);
extern void do_parse_cons_expression (expressionS *, int);
@@
-135,13
+161,18
@@
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 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 void do_align (unsigned int align, char *fill, unsigned int length,
+ unsigned int max);
+extern void bss_alloc (symbolS *, addressT, unsigned);
extern offsetT parse_align (int);
extern symbolS *s_comm_internal (int, symbolS *(*) (int, symbolS *, addressT));
extern symbolS *s_lcomm_internal (int, symbolS *, addressT);
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_file_string (char *);
+extern void s_file (int);
+extern void s_linefile (int);
+extern void s_bundle_align_mode (int);
+extern void s_bundle_lock (int);
+extern void s_bundle_unlock (int);
extern void s_comm (int);
extern void s_data (int);
extern void s_desc (int);
extern void s_comm (int);
extern void s_data (int);
extern void s_desc (int);
@@
-179,6
+210,8
@@
extern void s_purgem (int);
extern void s_rept (int);
extern void s_set (int);
extern void s_space (int mult);
extern void s_rept (int);
extern void s_set (int);
extern void s_space (int mult);
+extern void s_nop (int);
+extern void s_nops (int);
extern void s_stab (int what);
extern void s_struct (int);
extern void s_text (int);
extern void s_stab (int what);
extern void s_struct (int);
extern void s_text (int);
@@
-186,5
+219,6
@@
extern void stringer (int append_zero);
extern void s_xstab (int what);
extern void s_rva (int);
extern void s_incbin (int);
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);
extern void s_weakref (int);
+extern void temp_ilp (char *);
+extern void restore_ilp (void);