From 917ecacc5b23051f9d6da0d9bdeb7ea953db6db6 Mon Sep 17 00:00:00 2001 From: Xianmiao Qu Date: Sun, 11 Nov 2018 13:44:01 +0000 Subject: [PATCH] csky.h (ASM_PREFERRED_EH_DATA_FORMAT): Define. 2018-11-11 Xianmiao Qu * config/csky/csky.h (ASM_PREFERRED_EH_DATA_FORMAT): Define. From-SVN: r266012 --- gcc/ChangeLog | 4 ++++ gcc/config/csky/csky.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2997cf7b486..a0770936555 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-11-11 Xianmiao Qu + + * config/csky/csky.h (ASM_PREFERRED_EH_DATA_FORMAT): Define. + 2018-11-11 Richard Biener * tree-vrp.h (class value_range_base): New base class for diff --git a/gcc/config/csky/csky.h b/gcc/config/csky/csky.h index 39aac6bb4b8..2bfffd56816 100644 --- a/gcc/config/csky/csky.h +++ b/gcc/config/csky/csky.h @@ -292,6 +292,9 @@ extern int csky_arch_isa_features[]; /* The register that holds the return address in exception handlers. */ #define EH_RETURN_STACKADJ_RTX gen_rtx_REG (SImode, CSKY_EH_STACKADJ_REGNUM) +/* Select a format to encode pointers in exception handling data. */ +#define ASM_PREFERRED_EH_DATA_FORMAT(CODE, GLOBAL) \ + (((GLOBAL) ? DW_EH_PE_indirect : 0) | DW_EH_PE_pcrel | DW_EH_PE_sdata4) /* Registers That Address the Stack Frame */ -- 2.30.2