aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUros Bizjak <uros@gcc.gnu.org>2012-03-22 08:41:38 +0100
committerUros Bizjak <uros@gcc.gnu.org>2012-03-22 08:41:38 +0100
commit8f27fc6bae75a2c65deac80c1a71bbcf8cf0327f (patch)
treef92d8b9b39db19acdf49e6ae05e235ed54ed8811
parent109a16c2ac1608c8003415a464ea8dabcacbf402 (diff)
downloadgcc-8f27fc6bae75a2c65deac80c1a71bbcf8cf0327f.zip
gcc-8f27fc6bae75a2c65deac80c1a71bbcf8cf0327f.tar.gz
gcc-8f27fc6bae75a2c65deac80c1a71bbcf8cf0327f.tar.bz2
config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
* config.gcc (alpha*-*-linux*): Add elfos.h to tm_file. (alpha*-*-freebsd*): Ditto. (alpha*-*-netbsd*): Ditto. (alpha*-*-openbsd*): Ditto. * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove. (DWARF2_DEBUGGING_INFO): Remove. (PREFERRED_DEBUGGING_TYPE): Remove. (ASM_FINAL_SPEC): Remove. (IDENT_ASM_OP): Remove. (ASM_OUTPUT_IDENT): Remove. (SKIP_ASM_OP): Remove. (ASM_OUTPUT_SKIP): Remove. (ALIGN_ASM_OP): Remove. (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove. (ASM_OUTPUT_CASE_LABEL): Remove. (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove. (COMMON_ASM_OP): Remove. (ASM_OUTPUT_ALIGNED_COMMON): Remove. (ASCII_DATA_ASM_OP): Remove. (READONLY_DATA_SECTION_ASM_OP): Remove. (INIT_SECTION_ASM_OP): Remove. (FINI_SECTION_ASM_OP): Remove. (ASM_SECTION_START_OP): Remove. (ASM_OUTPUT_SECTION_START_FILE): Remove. (TARGET_ASM_NAMED_SECTION): Remove. (TARGET_ASM_SELECT_SECTION): Remove. (MAKE_DECL_ONE_ONLY): Remove. (TYPE_ASM_OP): Remove. (SIZE_ASM_OP): Remove. (ASM_WEAKEN_LABEL): Remove. (TYPE_OPERAND_FMT): Remove. (ASM_DECLARE_RESULT): Remove. (ASM_DECLARE_OBJECT_NAME): Remove. (ASM_FINISH_DECLARE_OBJECT): Remove. (ELF_ASCII_ESCAPES): Remove. (ELF_STRING_LIMIT): Remove. (STRING_ASM_OP): Remove. (ASM_OUTPUT_EXTERNAL): Remove. (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false. * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine before define. (ASM_DECLARE_FUNCTION_NAME): Ditto. (ASM_DECLARE_FUNCTION_SIZE): Ditto. (ASM_GENERATE_INTERNAL_LABEL): Ditto. (ASM_OUTPUT_SKIP): Ditto. (READONLY_DATA_SECTION_ASM_OP): Remove. (USER_LABEL_PREFIX): Remove. (ASM_OUTPUT_ASCII): Remove. (ASM_OUTPUT_CASE_LABEL): Remove. (NO_DOLLAR_IN_LABEL): Undefine. From-SVN: r185677
-rw-r--r--gcc/ChangeLog61
-rw-r--r--gcc/config.gcc8
-rw-r--r--gcc/config/alpha/alpha.h64
-rw-r--r--gcc/config/alpha/elf.h272
4 files changed, 71 insertions, 334 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0bcae9b..73bc0bc 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,56 @@
+2012-03-22 Uros Bizjak <ubizjak@gmail.com>
+
+ * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
+ (alpha*-*-freebsd*): Ditto.
+ (alpha*-*-netbsd*): Ditto.
+ (alpha*-*-openbsd*): Ditto.
+ * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
+ (DWARF2_DEBUGGING_INFO): Remove.
+ (PREFERRED_DEBUGGING_TYPE): Remove.
+ (ASM_FINAL_SPEC): Remove.
+ (IDENT_ASM_OP): Remove.
+ (ASM_OUTPUT_IDENT): Remove.
+ (SKIP_ASM_OP): Remove.
+ (ASM_OUTPUT_SKIP): Remove.
+ (ALIGN_ASM_OP): Remove.
+ (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
+ (ASM_OUTPUT_CASE_LABEL): Remove.
+ (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
+ (COMMON_ASM_OP): Remove.
+ (ASM_OUTPUT_ALIGNED_COMMON): Remove.
+ (ASCII_DATA_ASM_OP): Remove.
+ (READONLY_DATA_SECTION_ASM_OP): Remove.
+ (INIT_SECTION_ASM_OP): Remove.
+ (FINI_SECTION_ASM_OP): Remove.
+ (ASM_SECTION_START_OP): Remove.
+ (ASM_OUTPUT_SECTION_START_FILE): Remove.
+ (TARGET_ASM_NAMED_SECTION): Remove.
+ (TARGET_ASM_SELECT_SECTION): Remove.
+ (MAKE_DECL_ONE_ONLY): Remove.
+ (TYPE_ASM_OP): Remove.
+ (SIZE_ASM_OP): Remove.
+ (ASM_WEAKEN_LABEL): Remove.
+ (TYPE_OPERAND_FMT): Remove.
+ (ASM_DECLARE_RESULT): Remove.
+ (ASM_DECLARE_OBJECT_NAME): Remove.
+ (ASM_FINISH_DECLARE_OBJECT): Remove.
+ (ELF_ASCII_ESCAPES): Remove.
+ (ELF_STRING_LIMIT): Remove.
+ (STRING_ASM_OP): Remove.
+ (ASM_OUTPUT_EXTERNAL): Remove.
+ (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
+ * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
+ before define.
+ (ASM_DECLARE_FUNCTION_NAME): Ditto.
+ (ASM_DECLARE_FUNCTION_SIZE): Ditto.
+ (ASM_GENERATE_INTERNAL_LABEL): Ditto.
+ (ASM_OUTPUT_SKIP): Ditto.
+ (READONLY_DATA_SECTION_ASM_OP): Remove.
+ (USER_LABEL_PREFIX): Remove.
+ (ASM_OUTPUT_ASCII): Remove.
+ (ASM_OUTPUT_CASE_LABEL): Remove.
+ (NO_DOLLAR_IN_LABEL): Undefine.
+
2012-03-22 Richard Guenther <rguenther@suse.de>
PR tree-optimization/52459
@@ -22,7 +75,7 @@
PR target/52642
* config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
- prologue for unwinder and profiler.
+ prologue for unwinder and profiler.
2012-03-21 Andreas Tobler <andreast@fgznet.ch>
@@ -507,8 +560,7 @@
(vect_pattern_recog): Add new argument. Support basic blocks.
* tree-vect-stmts.c (vectorizable_conversion): Pass basic block
info to vect_is_simple_use_1.
- * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic
- blocks.
+ * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
(vect_slp_analyze_bb_1): Call vect_pattern_recog.
2012-03-15 Jakub Jelinek <jakub@redhat.com>
@@ -569,8 +621,7 @@
* config/i386/i386.c (ix86_option_override_internal): Properly
check and set ix86_pmode.
- * config/i386/i386.h (Pmode): Check ix86_pmode instead of
- TARGET_64BIT.
+ * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
* config/i386/i386.opt (maddress-mode=): New.
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 1b01833..b44224a 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -768,21 +768,21 @@ esac
case ${target} in
alpha*-*-linux*)
- tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h glibc-stdint.h"
+ tm_file="elfos.h ${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h glibc-stdint.h"
extra_options="${extra_options} alpha/elf.opt"
;;
alpha*-*-freebsd*)
- tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
+ tm_file="elfos.h ${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
extra_options="${extra_options} alpha/elf.opt"
;;
alpha*-*-netbsd*)
- tm_file="${tm_file} netbsd.h alpha/elf.h netbsd-elf.h alpha/netbsd.h"
+ tm_file="elfos.h ${tm_file} netbsd.h alpha/elf.h netbsd-elf.h alpha/netbsd.h"
extra_options="${extra_options} netbsd.opt netbsd-elf.opt \
alpha/elf.opt"
;;
alpha*-*-openbsd*)
tm_defines="${tm_defines} OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_FUNCTION_SIZE OBSD_HAS_DECLARE_OBJECT"
- tm_file="alpha/alpha.h alpha/elf.h openbsd.h openbsd-stdint.h alpha/openbsd.h openbsd-libpthread.h"
+ tm_file="elfos.h alpha/alpha.h alpha/elf.h openbsd.h openbsd-stdint.h alpha/openbsd.h openbsd-libpthread.h"
extra_options="${extra_options} openbsd.opt alpha/elf.opt"
# default x-alpha is only appropriate for dec-osf.
;;
diff --git a/gcc/config/alpha/alpha.h b/gcc/config/alpha/alpha.h
index 01ca3c24..dc7f222 100644
--- a/gcc/config/alpha/alpha.h
+++ b/gcc/config/alpha/alpha.h
@@ -284,6 +284,7 @@ extern enum alpha_fp_trap_mode alpha_fptm;
#define STRUCTURE_SIZE_BOUNDARY 8
/* A bit-field declared as `int' forces `int' alignment for the struct. */
+#undef PCC_BITFILED_TYPE_MATTERS
#define PCC_BITFIELD_TYPE_MATTERS 1
/* No data type wants to be aligned rounder than this. */
@@ -700,11 +701,13 @@ extern int alpha_memory_latency;
/* This macro produces the initial definition of a function. */
+#undef ASM_DECLARE_FUNCTION_NAME
#define ASM_DECLARE_FUNCTION_NAME(FILE,NAME,DECL) \
alpha_start_function(FILE,NAME,DECL);
/* This macro closes up a function definition for the assembler. */
+#undef ASM_DECLARE_FUNCTION_SIZE
#define ASM_DECLARE_FUNCTION_SIZE(FILE,NAME,DECL) \
alpha_end_function(FILE,NAME,DECL)
@@ -982,10 +985,6 @@ do { \
#define TEXT_SECTION_ASM_OP "\t.text"
-/* Output before read-only data. */
-
-#define READONLY_DATA_SECTION_ASM_OP "\t.rdata"
-
/* Output before writable data. */
#define DATA_SECTION_ASM_OP "\t.data"
@@ -1020,69 +1019,19 @@ do { \
/* Globalizing directive for a label. */
#define GLOBAL_ASM_OP "\t.globl "
-/* The prefix to add to user-visible assembler symbols. */
-
-#define USER_LABEL_PREFIX ""
+/* Use dollar signs rather than periods in special g++ assembler names. */
-/* This is how to output a label for a jump table. Arguments are the same as
- for (*targetm.asm_out.internal_label), except the insn for the jump table is
- passed. */
-
-#define ASM_OUTPUT_CASE_LABEL(FILE,PREFIX,NUM,TABLEINSN) \
-{ ASM_OUTPUT_ALIGN (FILE, 2); (*targetm.asm_out.internal_label) (FILE, PREFIX, NUM); }
+#undef NO_DOLLAR_IN_LABEL
/* This is how to store into the string LABEL
the symbol_ref name of an internal numbered label where
PREFIX is the class of label and NUM is the number within the class.
This is suitable for output with `assemble_name'. */
+#undef ASM_GENERATE_INTERNAL_LABEL
#define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM) \
sprintf ((LABEL), "*$%s%ld", (PREFIX), (long)(NUM))
-/* We use the default ASCII-output routine, except that we don't write more
- than 50 characters since the assembler doesn't support very long lines. */
-
-#define ASM_OUTPUT_ASCII(MYFILE, MYSTRING, MYLENGTH) \
- do { \
- FILE *_hide_asm_out_file = (MYFILE); \
- const unsigned char *_hide_p = (const unsigned char *) (MYSTRING); \
- int _hide_thissize = (MYLENGTH); \
- int _size_so_far = 0; \
- { \
- FILE *asm_out_file = _hide_asm_out_file; \
- const unsigned char *p = _hide_p; \
- int thissize = _hide_thissize; \
- int i; \
- fprintf (asm_out_file, "\t.ascii \""); \
- \
- for (i = 0; i < thissize; i++) \
- { \
- register int c = p[i]; \
- \
- if (_size_so_far ++ > 50 && i < thissize - 4) \
- _size_so_far = 0, fprintf (asm_out_file, "\"\n\t.ascii \""); \
- \
- if (c == '\"' || c == '\\') \
- putc ('\\', asm_out_file); \
- if (c >= ' ' && c < 0177) \
- putc (c, asm_out_file); \
- else \
- { \
- fprintf (asm_out_file, "\\%o", c); \
- /* After an octal-escape, if a digit follows, \
- terminate one string constant and start another. \
- The VAX assembler fails to stop reading the escape \
- after three digits, so this is the only way we \
- can get it to parse the data properly. */ \
- if (i < thissize - 1 && ISDIGIT (p[i + 1])) \
- _size_so_far = 0, fprintf (asm_out_file, "\"\n\t.ascii \""); \
- } \
- } \
- fprintf (asm_out_file, "\"\n"); \
- } \
- } \
- while (0)
-
/* This is how to output an element of a case-vector that is relative. */
#define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, BODY, VALUE, REL) \
@@ -1098,6 +1047,7 @@ do { \
/* This is how to advance the location counter by SIZE bytes. */
+#undef ASM_OUTPUT_SKIP
#define ASM_OUTPUT_SKIP(FILE,SIZE) \
fprintf (FILE, "\t.space "HOST_WIDE_INT_PRINT_UNSIGNED"\n", (SIZE))
diff --git a/gcc/config/alpha/elf.h b/gcc/config/alpha/elf.h
index 2e165ec..29fdeab 100644
--- a/gcc/config/alpha/elf.h
+++ b/gcc/config/alpha/elf.h
@@ -19,93 +19,16 @@ You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>. */
-#define OBJECT_FORMAT_ELF
-
-#define DWARF2_DEBUGGING_INFO 1
-
-#undef PREFERRED_DEBUGGING_TYPE
-#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
-
-#undef ASM_FINAL_SPEC
-
-/* alpha/ doesn't use elfos.h for some reason. */
-#define TARGET_OBJFMT_CPP_BUILTINS() \
- do \
- { \
- builtin_define ("__ELF__"); \
- } \
- while (0)
-
#undef CC1_SPEC
#define CC1_SPEC "%{G*}"
#undef ASM_SPEC
#define ASM_SPEC "%{G*} %{relax:-relax} %{!gstabs*:-no-mdebug}%{gstabs*:-mdebug}"
-#undef IDENT_ASM_OP
-#define IDENT_ASM_OP "\t.ident\t"
-
-/* Output #ident as a .ident. */
-#undef ASM_OUTPUT_IDENT
-#define ASM_OUTPUT_IDENT(FILE, NAME) \
- fprintf (FILE, "%s\"%s\"\n", IDENT_ASM_OP, NAME);
-
-/* This is how to allocate empty space in some section. The .zero
- pseudo-op is used for this on most svr4 assemblers. */
-
-#undef SKIP_ASM_OP
-#define SKIP_ASM_OP "\t.zero\t"
-
-#undef ASM_OUTPUT_SKIP
-#define ASM_OUTPUT_SKIP(FILE, SIZE) \
- fprintf (FILE, "%s"HOST_WIDE_INT_PRINT_UNSIGNED"\n", SKIP_ASM_OP, (SIZE))
-
-/* Output the label which precedes a jumptable. Note that for all svr4
- systems where we actually generate jumptables (which is to say every
- svr4 target except i386, where we use casesi instead) we put the jump-
- tables into the .rodata section and since other stuff could have been
- put into the .rodata section prior to any given jumptable, we have to
- make sure that the location counter for the .rodata section gets pro-
- perly re-aligned prior to the actual beginning of the jump table. */
-
-#undef ALIGN_ASM_OP
-#define ALIGN_ASM_OP "\t.align\t"
-
-#ifndef ASM_OUTPUT_BEFORE_CASE_LABEL
-#define ASM_OUTPUT_BEFORE_CASE_LABEL(FILE, PREFIX, NUM, TABLE) \
- ASM_OUTPUT_ALIGN ((FILE), 2);
-#endif
-
-#undef ASM_OUTPUT_CASE_LABEL
-#define ASM_OUTPUT_CASE_LABEL(FILE, PREFIX, NUM, JUMPTABLE) \
- do { \
- ASM_OUTPUT_BEFORE_CASE_LABEL (FILE, PREFIX, NUM, JUMPTABLE) \
- (*targetm.asm_out.internal_label) (FILE, PREFIX, NUM); \
- } while (0)
-
-/* The standard SVR4 assembler seems to require that certain builtin
- library routines (e.g. .udiv) be explicitly declared as .globl
- in each assembly file where they are referenced. */
-
-#undef ASM_OUTPUT_EXTERNAL_LIBCALL
-#define ASM_OUTPUT_EXTERNAL_LIBCALL(FILE, FUN) \
- (*targetm.asm_out.globalize_label) (FILE, XSTR (FUN, 0))
-
-/* This says how to output assembler code to declare an
- uninitialized external linkage data object. Under SVR4,
- the linker seems to want the alignment of data objects
- to depend on their types. We do exactly that here. */
-
-#undef COMMON_ASM_OP
-#define COMMON_ASM_OP "\t.comm\t"
-
-#undef ASM_OUTPUT_ALIGNED_COMMON
-#define ASM_OUTPUT_ALIGNED_COMMON(FILE, NAME, SIZE, ALIGN) \
-do { \
- fprintf ((FILE), "%s", COMMON_ASM_OP); \
- assemble_name ((FILE), (NAME)); \
- fprintf ((FILE), "," HOST_WIDE_INT_PRINT_UNSIGNED ",%u\n", (SIZE), (ALIGN) / BITS_PER_UNIT); \
-} while (0)
+/* Do not output a .file directive at the beginning of the input file. */
+
+#undef TARGET_ASM_FILE_START_FILE_DIRECTIVE
+#define TARGET_ASM_FILE_START_FILE_DIRECTIVE false
/* This says how to output assembler code to declare an
uninitialized internal linkage data object. Under SVR4,
@@ -151,15 +74,6 @@ do { \
#undef MAX_OFILE_ALIGNMENT
#define MAX_OFILE_ALIGNMENT (((unsigned int) 1 << 28) * 8)
-/* This is the pseudo-op used to generate a contiguous sequence of byte
- values from a double-quoted string WITHOUT HAVING A TERMINATING NUL
- AUTOMATICALLY APPENDED. This is the same for most svr4 assemblers. */
-
-#undef ASCII_DATA_ASM_OP
-#define ASCII_DATA_ASM_OP "\t.ascii\t"
-
-#undef READONLY_DATA_SECTION_ASM_OP
-#define READONLY_DATA_SECTION_ASM_OP "\t.section\t.rodata"
#undef BSS_SECTION_ASM_OP
#define BSS_SECTION_ASM_OP "\t.section\t.bss"
#undef SBSS_SECTION_ASM_OP
@@ -167,51 +81,6 @@ do { \
#undef SDATA_SECTION_ASM_OP
#define SDATA_SECTION_ASM_OP "\t.section\t.sdata,\"aw\""
-/* On svr4, we *do* have support for the .init and .fini sections, and we
- can put stuff in there to be executed before and after `main'. We let
- crtstuff.c and other files know this by defining the following symbols.
- The definitions say how to change sections to the .init and .fini
- sections. This is the same for all known svr4 assemblers. */
-
-#undef INIT_SECTION_ASM_OP
-#define INIT_SECTION_ASM_OP "\t.section\t.init"
-#undef FINI_SECTION_ASM_OP
-#define FINI_SECTION_ASM_OP "\t.section\t.fini"
-
-#ifdef HAVE_GAS_SUBSECTION_ORDERING
-
-#define ASM_SECTION_START_OP "\t.subsection\t-1"
-
-/* Output assembly directive to move to the beginning of current section. */
-#define ASM_OUTPUT_SECTION_START(FILE) \
- fprintf ((FILE), "%s\n", ASM_SECTION_START_OP)
-
-#endif
-
-/* Switch into a generic section. */
-#define TARGET_ASM_NAMED_SECTION default_elf_asm_named_section
-#define TARGET_ASM_SELECT_SECTION default_elf_select_section
-
-#define MAKE_DECL_ONE_ONLY(DECL) (DECL_WEAK (DECL) = 1)
-
-/* Define the strings used for the special svr4 .type and .size directives.
- These strings generally do not vary from one system running svr4 to
- another, but if a given system (e.g. m88k running svr) needs to use
- different pseudo-op names for these, they may be overridden in the
- file which includes this one. */
-
-#undef TYPE_ASM_OP
-#define TYPE_ASM_OP "\t.type\t"
-#undef SIZE_ASM_OP
-#define SIZE_ASM_OP "\t.size\t"
-
-/* This is how we tell the assembler that a symbol is weak. */
-
-#undef ASM_WEAKEN_LABEL
-#define ASM_WEAKEN_LABEL(FILE, NAME) \
- do { fputs ("\t.weak\t", FILE); assemble_name (FILE, NAME); \
- fputc ('\n', FILE); } while (0)
-
/* This is how we tell the assembler that two symbols have the same value. */
#undef ASM_OUTPUT_DEF
@@ -242,129 +111,6 @@ do { \
fputc('\n', FILE); \
} while (0)
-/* The following macro defines the format used to output the second
- operand of the .type assembler directive. Different svr4 assemblers
- expect various different forms for this operand. The one given here
- is just a default. You may need to override it in your machine-
- specific tm.h file (depending upon the particulars of your assembler). */
-
-#undef TYPE_OPERAND_FMT
-#define TYPE_OPERAND_FMT "@%s"
-
-/* Write the extra assembler code needed to declare a function's result.
- Most svr4 assemblers don't require any special declaration of the
- result value, but there are exceptions. */
-
-#ifndef ASM_DECLARE_RESULT
-#define ASM_DECLARE_RESULT(FILE, RESULT)
-#endif
-
-/* These macros generate the special .type and .size directives which
- are used to set the corresponding fields of the linker symbol table
- entries in an ELF object file under SVR4. These macros also output
- the starting labels for the relevant functions/objects. */
-
-/* Write the extra assembler code needed to declare an object properly. */
-
-#ifdef HAVE_GAS_GNU_UNIQUE_OBJECT
-#define USE_GNU_UNIQUE_OBJECT 1
-#else
-#define USE_GNU_UNIQUE_OBJECT 0
-#endif
-
-#undef ASM_DECLARE_OBJECT_NAME
-#define ASM_DECLARE_OBJECT_NAME(FILE, NAME, DECL) \
- do { \
- HOST_WIDE_INT size; \
- \
- /* For template static data member instantiations or \
- inline fn local statics and their guard variables, use \
- gnu_unique_object so that they will be combined even under \
- RTLD_LOCAL. Don't use gnu_unique_object for typeinfo, \
- vtables and other read-only artificial decls. */ \
- if (USE_GNU_UNIQUE_OBJECT && DECL_ONE_ONLY (DECL) \
- && (!DECL_ARTIFICIAL (DECL) || !TREE_READONLY (DECL))) \
- ASM_OUTPUT_TYPE_DIRECTIVE (FILE, NAME, "gnu_unique_object"); \
- else \
- ASM_OUTPUT_TYPE_DIRECTIVE (FILE, NAME, "object"); \
- \
- size_directive_output = 0; \
- if (!flag_inhibit_size_directive \
- && (DECL) && DECL_SIZE (DECL)) \
- { \
- size_directive_output = 1; \
- size = int_size_in_bytes (TREE_TYPE (DECL)); \
- ASM_OUTPUT_SIZE_DIRECTIVE (FILE, NAME, size); \
- } \
- \
- ASM_OUTPUT_LABEL (FILE, NAME); \
- } while (0)
-
-/* Output the size directive for a decl in rest_of_decl_compilation
- in the case where we did not do so before the initializer.
- Once we find the error_mark_node, we know that the value of
- size_directive_output was set
- by ASM_DECLARE_OBJECT_NAME when it was run for the same decl. */
-
-#undef ASM_FINISH_DECLARE_OBJECT
-#define ASM_FINISH_DECLARE_OBJECT(FILE, DECL, TOP_LEVEL, AT_END) \
- do { \
- const char *name = XSTR (XEXP (DECL_RTL (DECL), 0), 0); \
- HOST_WIDE_INT size; \
- if (!flag_inhibit_size_directive \
- && DECL_SIZE (DECL) \
- && ! AT_END && TOP_LEVEL \
- && DECL_INITIAL (DECL) == error_mark_node \
- && !size_directive_output \
- && (size = int_size_in_bytes (TREE_TYPE (DECL))) > 0) \
- { \
- size_directive_output = 1; \
- ASM_OUTPUT_SIZE_DIRECTIVE (FILE, name, size); \
- } \
- } while (0)
-
-/* A table of bytes codes used by the ASM_OUTPUT_ASCII and
- ASM_OUTPUT_LIMITED_STRING macros. Each byte in the table
- corresponds to a particular byte value [0..255]. For any
- given byte value, if the value in the corresponding table
- position is zero, the given character can be output directly.
- If the table value is 1, the byte must be output as a \ooo
- octal escape. If the tables value is anything else, then the
- byte value should be output as a \ followed by the value
- in the table. Note that we can use standard UN*X escape
- sequences for many control characters, but we don't use
- \a to represent BEL because some svr4 assemblers (e.g. on
- the i386) don't know about that. Also, we don't use \v
- since some versions of gas, such as 2.2 did not accept it. */
-
-#undef ELF_ASCII_ESCAPES
-#define ELF_ASCII_ESCAPES \
-"\1\1\1\1\1\1\1\1btn\1fr\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\
-\0\0\"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
-\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\\\0\0\0\
-\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\
-\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\
-\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\
-\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\
-\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1"
-
-/* Some svr4 assemblers have a limit on the number of characters which
- can appear in the operand of a .string directive. If your assembler
- has such a limitation, you should define STRING_LIMIT to reflect that
- limit. Note that at least some svr4 assemblers have a limit on the
- actual number of bytes in the double-quoted string, and that they
- count each character in an escape sequence as one byte. Thus, an
- escape sequence like \377 would count as four bytes.
-
- If your target assembler doesn't support the .string directive, you
- should define this to zero. */
-
-#undef ELF_STRING_LIMIT
-#define ELF_STRING_LIMIT ((unsigned) 256)
-
-#undef STRING_ASM_OP
-#define STRING_ASM_OP "\t.string\t"
-
/* Provide a STARTFILE_SPEC appropriate for ELF. Here we add the
(even more) magical crtbegin.o file which provides part of the
support for getting C++ file-scope static object constructed
@@ -431,13 +177,3 @@ extern int alpha_this_gpdisp_sequence_number;
#if defined(HAVE_LD_EH_FRAME_HDR)
#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
#endif
-
-/* A C statement (sans semicolon) to output to the stdio stream STREAM
- any text necessary for declaring the name of an external symbol
- named NAME which is referenced in this compilation but not defined.
- It is needed to properly support non-default visibility. */
-
-#ifndef ASM_OUTPUT_EXTERNAL
-#define ASM_OUTPUT_EXTERNAL(FILE, DECL, NAME) \
- default_elf_asm_output_external (FILE, DECL, NAME)
-#endif