aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/alpha/alpha.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/alpha/alpha.c')
-rw-r--r--gcc/config/alpha/alpha.c73
1 files changed, 7 insertions, 66 deletions
diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c
index bd14083..46c620b 100644
--- a/gcc/config/alpha/alpha.c
+++ b/gcc/config/alpha/alpha.c
@@ -428,9 +428,8 @@ alpha_option_override (void)
target_flags &= ~MASK_SMALL_DATA;
/* Align labels and loops for optimal branching. */
- /* ??? Kludge these by not doing anything if we don't optimize and also if
- we are writing ECOFF symbols to work around a bug in DEC's assembler. */
- if (optimize > 0 && write_symbols != SDB_DEBUG)
+ /* ??? Kludge these by not doing anything if we don't optimize. */
+ if (optimize > 0)
{
if (align_loops <= 0)
align_loops = 16;
@@ -4988,8 +4987,7 @@ print_operand (FILE *file, rtx x, int code)
const char *round = get_round_mode_suffix ();
if (trap || round)
- fprintf (file, (TARGET_AS_SLASH_BEFORE_SUFFIX ? "/%s%s" : "%s%s"),
- (trap ? trap : ""), (round ? round : ""));
+ fprintf (file, "/%s%s", (trap ? trap : ""), (round ? round : ""));
break;
}
@@ -7889,27 +7887,6 @@ alpha_start_function (FILE *file, const char *fnname,
alpha_sa_mask (&imask, &fmask);
- /* Ecoff can handle multiple .file directives, so put out file and lineno.
- We have to do that before the .ent directive as we cannot switch
- files within procedures with native ecoff because line numbers are
- linked to procedure descriptors.
- Outputting the lineno helps debugging of one line functions as they
- would otherwise get no line number at all. Please note that we would
- like to put out last_linenum from final.c, but it is not accessible. */
-
- if (write_symbols == SDB_DEBUG)
- {
-#ifdef ASM_OUTPUT_SOURCE_FILENAME
- ASM_OUTPUT_SOURCE_FILENAME (file,
- DECL_SOURCE_FILE (current_function_decl));
-#endif
-#ifdef SDB_OUTPUT_SOURCE_LINE
- if (debug_info_level != DINFO_LEVEL_TERSE)
- SDB_OUTPUT_SOURCE_LINE (file,
- DECL_SOURCE_LINE (current_function_decl));
-#endif
- }
-
/* Issue function start and label. */
if (TARGET_ABI_OPEN_VMS || !flag_inhibit_size_directive)
{
@@ -8388,11 +8365,6 @@ alpha_output_mi_thunk_osf (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED,
#include "gstab.h"
-/* Count the number of sdb related labels are generated (to find block
- start and end boundaries). */
-
-int sdb_label_count = 0;
-
/* Name of the file containing the current function. */
static const char *current_function_file = "";
@@ -8417,25 +8389,14 @@ alpha_output_filename (FILE *stream, const char *name)
fprintf (stream, "\t.file\t%d ", num_source_filenames);
output_quoted_string (stream, name);
fprintf (stream, "\n");
- if (!TARGET_GAS && write_symbols == DBX_DEBUG)
- fprintf (stream, "\t#@stabs\n");
}
- else if (write_symbols == DBX_DEBUG)
- /* dbxout.c will emit an appropriate .stabs directive. */
- return;
-
else if (name != current_function_file
&& strcmp (name, current_function_file) != 0)
{
- if (inside_function && ! TARGET_GAS)
- fprintf (stream, "\t#.file\t%d ", num_source_filenames);
- else
- {
- ++num_source_filenames;
- current_function_file = name;
- fprintf (stream, "\t.file\t%d ", num_source_filenames);
- }
+ ++num_source_filenames;
+ current_function_file = name;
+ fprintf (stream, "\t.file\t%d ", num_source_filenames);
output_quoted_string (stream, name);
fprintf (stream, "\n");
@@ -9374,24 +9335,10 @@ alpha_reorg (void)
}
}
-#ifdef HAVE_STAMP_H
-#include <stamp.h>
-#endif
-
static void
alpha_file_start (void)
{
-#ifdef OBJECT_FORMAT_ELF
- /* If emitting dwarf2 debug information, we cannot generate a .file
- directive to start the file, as it will conflict with dwarf2out
- file numbers. So it's only useful when emitting mdebug output. */
- targetm.asm_file_start_file_directive = (write_symbols == DBX_DEBUG);
-#endif
-
default_file_start ();
-#ifdef MS_STAMP
- fprintf (asm_out_file, "\t.verstamp %d %d\n", MS_STAMP, LS_STAMP);
-#endif
fputs ("\t.set noreorder\n", asm_out_file);
fputs ("\t.set volatile\n", asm_out_file);
@@ -9418,7 +9365,6 @@ alpha_file_start (void)
}
}
-#ifdef OBJECT_FORMAT_ELF
/* Since we don't have a .dynbss section, we should not allow global
relocations in the .rodata section. */
@@ -9458,7 +9404,6 @@ alpha_elf_section_type_flags (tree decl, const char *name, int reloc)
flags |= default_section_type_flags (decl, name, reloc);
return flags;
}
-#endif /* OBJECT_FORMAT_ELF */
/* Structure to collect function names for final output in link section. */
/* Note that items marked with GTY can't be ifdef'ed out. */
@@ -9741,7 +9686,7 @@ alpha_conditional_register_usage (void)
/* Default unaligned ops are provided for ELF systems. To get unaligned
data for non-ELF systems, we have to turn off auto alignment. */
-#if !defined (OBJECT_FORMAT_ELF) || TARGET_ABI_OPEN_VMS
+#if TARGET_ABI_OPEN_VMS
#undef TARGET_ASM_UNALIGNED_HI_OP
#define TARGET_ASM_UNALIGNED_HI_OP "\t.align 0\n\t.word\t"
#undef TARGET_ASM_UNALIGNED_SI_OP
@@ -9750,14 +9695,12 @@ alpha_conditional_register_usage (void)
#define TARGET_ASM_UNALIGNED_DI_OP "\t.align 0\n\t.quad\t"
#endif
-#ifdef OBJECT_FORMAT_ELF
#undef TARGET_ASM_RELOC_RW_MASK
#define TARGET_ASM_RELOC_RW_MASK alpha_elf_reloc_rw_mask
#undef TARGET_ASM_SELECT_RTX_SECTION
#define TARGET_ASM_SELECT_RTX_SECTION alpha_elf_select_rtx_section
#undef TARGET_SECTION_TYPE_FLAGS
#define TARGET_SECTION_TYPE_FLAGS alpha_elf_section_type_flags
-#endif
#undef TARGET_ASM_FUNCTION_END_PROLOGUE
#define TARGET_ASM_FUNCTION_END_PROLOGUE alpha_output_function_end_prologue
@@ -9770,8 +9713,6 @@ alpha_conditional_register_usage (void)
#undef TARGET_ASM_FILE_START
#define TARGET_ASM_FILE_START alpha_file_start
-#undef TARGET_ASM_FILE_START_FILE_DIRECTIVE
-#define TARGET_ASM_FILE_START_FILE_DIRECTIVE true
#undef TARGET_SCHED_ADJUST_COST
#define TARGET_SCHED_ADJUST_COST alpha_adjust_cost