aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2023-01-03 16:47:31 +0100
committerFlorian Weimer <fweimer@redhat.com>2023-01-03 16:47:31 +0100
commitd010efbfb89721bc9ca9e657e980ff0d8e6187af (patch)
treedd4120fdd100912a15f98dafd9688b3660f1ab05 /gcc
parent96127a4100e8a62c3dc009b5f06199bf24275bf3 (diff)
downloadgcc-d010efbfb89721bc9ca9e657e980ff0d8e6187af.zip
gcc-d010efbfb89721bc9ca9e657e980ff0d8e6187af.tar.gz
gcc-d010efbfb89721bc9ca9e657e980ff0d8e6187af.tar.bz2
Revert "Define __LIBGCC_DWARF_REG_SIZES_CONSTANT__ if DWARF register size is constant"
This reverts commit 97bbdb726aba76ead550e25061029cf0aa78671b.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/c-family/c-cppbuiltin.cc6
-rw-r--r--gcc/debug.h2
-rw-r--r--gcc/dwarf2cfi.cc23
3 files changed, 0 insertions, 31 deletions
diff --git a/gcc/c-family/c-cppbuiltin.cc b/gcc/c-family/c-cppbuiltin.cc
index 011478c..333f3e1 100644
--- a/gcc/c-family/c-cppbuiltin.cc
+++ b/gcc/c-family/c-cppbuiltin.cc
@@ -1521,12 +1521,6 @@ c_cpp_builtins (cpp_reader *pfile)
#endif
builtin_define_with_int_value ("__LIBGCC_DWARF_FRAME_REGISTERS__",
DWARF_FRAME_REGISTERS);
- {
- int value = dwarf_reg_sizes_constant ();
- if (value > 0)
- builtin_define_with_int_value ("__LIBGCC_DWARF_REG_SIZES_CONSTANT__",
- value);
- }
#ifdef EH_RETURN_STACKADJ_RTX
cpp_define (pfile, "__LIBGCC_EH_RETURN_STACKADJ_RTX__");
#endif
diff --git a/gcc/debug.h b/gcc/debug.h
index 4fe9f35..799d5e3 100644
--- a/gcc/debug.h
+++ b/gcc/debug.h
@@ -245,8 +245,6 @@ extern const struct gcc_debug_hooks vmsdbg_debug_hooks;
/* Dwarf2 frame information. */
-extern int dwarf_reg_sizes_constant ();
-
extern void dwarf2out_begin_prologue (unsigned int, unsigned int,
const char *);
extern void dwarf2out_vms_end_prologue (unsigned int, const char *);
diff --git a/gcc/dwarf2cfi.cc b/gcc/dwarf2cfi.cc
index d5a27dc..4d2bd86 100644
--- a/gcc/dwarf2cfi.cc
+++ b/gcc/dwarf2cfi.cc
@@ -334,29 +334,6 @@ generate_dwarf_reg_sizes (poly_uint16 *sizes)
targetm.init_dwarf_reg_sizes_extra (sizes);
}
-/* Return 0 if the DWARF register sizes are not constant, otherwise
- return the size constant. */
-
-int
-dwarf_reg_sizes_constant ()
-{
- poly_uint16 *sizes = XALLOCAVEC (poly_uint16, DWARF_FRAME_REGISTERS);
- generate_dwarf_reg_sizes (sizes);
-
- int result;
- for (unsigned int i = 0; i < DWARF_FRAME_REGISTERS; i++)
- {
- unsigned short value;
- if (!sizes[i].is_constant (&value))
- return 0;
- if (i == 0)
- result = value;
- else if (result != value)
- return 0;
- }
- return result;
-}
-
/* Generate code to initialize the dwarf register size table located
at the provided ADDRESS. */