[gcc(refs/users/marxin/heads/casm-refactoring-v2)] Small clean-up.
Martin Liska
marxin@gcc.gnu.org
Thu Sep 16 12:03:34 GMT 2021
https://gcc.gnu.org/g:3dce6daad829b293effd57bf77b69b838f07b68d
commit 3dce6daad829b293effd57bf77b69b838f07b68d
Author: Martin Liska <mliska@suse.cz>
Date: Thu Sep 16 14:03:03 2021 +0200
Small clean-up.
Diff:
---
gcc/dwarf2out.c | 23 ++---------------------
1 file changed, 2 insertions(+), 21 deletions(-)
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index a7e57f0d38c..c2f284b47d6 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -365,6 +365,8 @@ static GTY(()) vec<tree, va_gc> *incomplete_types;
#define LINE_CODE_LABEL "LM"
#endif
+/* Dwarf output state. */
+
struct GTY(()) dwarf_out_state
{
dwarf_out_state (asm_out_state *asm_state):
@@ -446,27 +448,6 @@ struct GTY(()) dwarf_out_state
static GTY(()) dwarf_out_state *dw_state = NULL;
-static vec<dwarf_out_state *> dwarf_stack;
-
-/* Push ASM_STATE as a current casm. */
-
-void
-push_dwarf_state (dwarf_out_state *state)
-{
-// push_asm (state->casm);
- dwarf_stack.safe_push (state);
- dw_state = state;
-}
-
-/* Return to previous casm state. */
-
-void
-pop_dwarf_state ()
-{
- dw_state = dwarf_stack.pop ();
-// pop_asm ();
-}
-
/* According to the (draft) DWARF 3 specification, the initial length
should either be 4 or 12 bytes. When it's 12 bytes, the first 4
bytes are 0xffffffff, followed by the length stored in the next 8
More information about the Gcc-cvs
mailing list