aboutsummaryrefslogtreecommitdiff
path: root/gcc/defaults.h
diff options
context:
space:
mode:
authorOlivier Hainque <hainque@adacore.com>2014-12-05 17:01:42 +0000
committerOlivier Hainque <hainque@gcc.gnu.org>2014-12-05 17:01:42 +0000
commita66272f6d2d307e7c06b2c4e48bbbd7ec331d919 (patch)
tree1e512f15b6544db42a15b89c2b3b637da2a29dab /gcc/defaults.h
parentedbbaf3b1bd04c4ea9d5891308eba2fbb3349bf5 (diff)
downloadgcc-a66272f6d2d307e7c06b2c4e48bbbd7ec331d919.zip
gcc-a66272f6d2d307e7c06b2c4e48bbbd7ec331d919.tar.gz
gcc-a66272f6d2d307e7c06b2c4e48bbbd7ec331d919.tar.bz2
defaults.h: (DWARF_REG_TO_UNWIND_COLUMN): Define default.
2014-12-05 Olivier Hainque <hainque@adacore.com> gcc/ * defaults.h: (DWARF_REG_TO_UNWIND_COLUMN): Define default. * dwarf2cfi.c (init_one_dwarf_reg_size): Honor DWARF_REG_TO_UNWIND_COLUMN. libgcc/ * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Remove default def, now provided by defaults.h. From-SVN: r218429
Diffstat (limited to 'gcc/defaults.h')
-rw-r--r--gcc/defaults.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/defaults.h b/gcc/defaults.h
index d2609e7..26e5750b 100644
--- a/gcc/defaults.h
+++ b/gcc/defaults.h
@@ -438,6 +438,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#define DWARF_FRAME_REGNUM(REG) DBX_REGISTER_NUMBER (REG)
#endif
+/* The mapping from dwarf CFA reg number to internal dwarf reg numbers. */
+#ifndef DWARF_REG_TO_UNWIND_COLUMN
+#define DWARF_REG_TO_UNWIND_COLUMN(REGNO) (REGNO)
+#endif
+
/* Map register numbers held in the call frame info that gcc has
collected using DWARF_FRAME_REGNUM to those that should be output in
.debug_frame and .eh_frame. */