gas: consistently emit diagnostics for non-zero data emission to .bss/.struct
[deliverable/binutils-gdb.git] / gas / read.h
index 59c002742050d33f0ebd535b77990123db0fe71e..fd5588d42e7e92a907347fabaf22571129c44f11 100644 (file)
@@ -1,5 +1,5 @@
 /* read.h - of read.c
-   Copyright (C) 1986-2014 Free Software Foundation, Inc.
+   Copyright (C) 1986-2015 Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
 
@@ -33,6 +33,16 @@ extern char *input_line_pointer;     /* -> char we are parsing now.  */
 #define SKIP_WHITESPACE() know(*input_line_pointer != ' ' )
 #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 */
@@ -93,6 +103,11 @@ enum linkonce_type {
 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 unsigned int get_stab_string_offset
   (const char *string, const char *stabstr_secname);
@@ -109,7 +124,10 @@ 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 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 equals (char *sym_name, int reassign);
 extern void float_cons (int float_type);
 extern void ignore_rest_of_line (void);
@@ -119,6 +137,7 @@ 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 char *read_symbol_name (void);
 extern int sizeof_leb128 (valueT, int sign);
 extern void stabs_generate_asm_file (void);
 extern void stabs_generate_asm_lineno (void);
This page took 0.024542 seconds and 4 git commands to generate.