From b759335b16ebc8d6640778df53c18fe11ca7083a Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Wed, 7 Oct 2015 18:35:23 +0000 Subject: [PATCH] xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit encoding in 64-bit mode. * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit encoding in 64-bit mode. From-SVN: r228579 --- gcc/ChangeLog | 5 +++++ gcc/config/rs6000/xcoff.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7504c567124..c9409e79728 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-10-07 David Edelsohn + + * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit + encoding in 64-bit mode. + 2015-10-07 Uros Bizjak PR target/66697 diff --git a/gcc/config/rs6000/xcoff.h b/gcc/config/rs6000/xcoff.h index 5cdf87ce2c5..301c7e1a56d 100644 --- a/gcc/config/rs6000/xcoff.h +++ b/gcc/config/rs6000/xcoff.h @@ -307,8 +307,8 @@ so use addressing relative to the data segment. */ #define ASM_PREFERRED_EH_DATA_FORMAT(CODE,GLOBAL) \ - ((GLOBAL) ? (DW_EH_PE_indirect | DW_EH_PE_datarel | DW_EH_PE_sdata4) \ - : (DW_EH_PE_pcrel | DW_EH_PE_sdata4)) + (((GLOBAL) ? DW_EH_PE_indirect | DW_EH_PE_datarel : DW_EH_PE_pcrel) \ + | (TARGET_64BIT ? DW_EH_PE_sdata8 : DW_EH_PE_sdata4)) #define EH_FRAME_THROUGH_COLLECT2 1 #define EH_TABLES_CAN_BE_READ_ONLY 1 -- 2.30.2