aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2001-10-26 01:51:01 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2001-10-26 01:51:01 +0000
commitf3a8e4f58d1107f0e84b865d5dd0e92ea56d8e6e (patch)
treefd026017dea2851e8801dfd0950f0f11a8281890 /gcc/dwarf2out.c
parented4a14688d13dcabe426d88b81a63f9c12aa4ba2 (diff)
downloadgcc-f3a8e4f58d1107f0e84b865d5dd0e92ea56d8e6e.zip
gcc-f3a8e4f58d1107f0e84b865d5dd0e92ea56d8e6e.tar.gz
gcc-f3a8e4f58d1107f0e84b865d5dd0e92ea56d8e6e.tar.bz2
dwarf2out.c (PTR_SIZE, [...]): Move outside of macro guards.
* dwarf2out.c (PTR_SIZE, default_eh_frame_section): Move outside of macro guards. Fix #endif comment. * output.h (default_exception_section, default_eh_frame_section): Move prototypes outside of macro guard. * crtstuff.c: Fix #endif comment. From-SVN: r46520
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c46
1 files changed, 25 insertions, 21 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index caa1e9a..a5acdb5 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -107,6 +107,30 @@ dwarf2out_do_frame ()
unique to each function definition. */
unsigned current_funcdef_number = 0;
+/* The size of the target's pointer type. */
+#ifndef PTR_SIZE
+#define PTR_SIZE (POINTER_SIZE / BITS_PER_UNIT)
+#endif
+
+/* Default version of targetm.eh_frame_section. Note this must appear
+ outside the DWARF2_DEBUGGING_INFO || DWARF2_UNWIND_INFO macro
+ guards. */
+
+void
+default_eh_frame_section ()
+{
+#ifdef EH_FRAME_SECTION_NAME
+ named_section_flags (EH_FRAME_SECTION_NAME, SECTION_WRITE);
+#else
+ tree label = get_file_function_name ('F');
+
+ data_section ();
+ ASM_OUTPUT_ALIGN (asm_out_file, floor_log2 (PTR_SIZE));
+ ASM_GLOBALIZE_LABEL (asm_out_file, IDENTIFIER_POINTER (label));
+ ASM_OUTPUT_LABEL (asm_out_file, IDENTIFIER_POINTER (label));
+#endif
+}
+
#if defined (DWARF2_DEBUGGING_INFO) || defined (DWARF2_UNWIND_INFO)
/* How to start an assembler comment. */
@@ -175,11 +199,6 @@ dw_fde_node;
/* Maximum size (in bytes) of an artificially generated label. */
#define MAX_ARTIFICIAL_LABEL_BYTES 30
-/* The size of the target's pointer type. */
-#ifndef PTR_SIZE
-#define PTR_SIZE (POINTER_SIZE / BITS_PER_UNIT)
-#endif
-
/* The size of addresses as they appear in the Dwarf 2 data.
Some architectures use word addresses to refer to code locations,
but Dwarf 2 info always uses byte addresses. On such machines,
@@ -1968,21 +1987,6 @@ output_call_frame_info (for_eh)
app_disable ();
}
-void
-default_eh_frame_section ()
-{
-#ifdef EH_FRAME_SECTION_NAME
- named_section_flags (EH_FRAME_SECTION_NAME, SECTION_WRITE);
-#else
- tree label = get_file_function_name ('F');
-
- data_section ();
- ASM_OUTPUT_ALIGN (asm_out_file, floor_log2 (PTR_SIZE));
- ASM_GLOBALIZE_LABEL (asm_out_file, IDENTIFIER_POINTER (label));
- ASM_OUTPUT_LABEL (asm_out_file, IDENTIFIER_POINTER (label));
-#endif
-}
-
/* Output a marker (i.e. a label) for the beginning of a function, before
the prologue. */
@@ -11807,4 +11811,4 @@ dwarf2out_finish (input_filename)
dw2_asm_output_data (1, DW_MACINFO_end_file, "End file");
}
}
-#endif /* DWARF2_DEBUGGING_INFO */
+#endif /* DWARF2_DEBUGGING_INFO || DWARF2_UNWIND_INFO */