summaryrefslogtreecommitdiff
path: root/gcc/config/tilegx/tilegx.c
diff options
context:
space:
mode:
authorwalt <walt@138bc75d-0d04-0410-961f-82ee72b054a4>2013-03-25 23:50:52 +0000
committerwalt <walt@138bc75d-0d04-0410-961f-82ee72b054a4>2013-03-25 23:50:52 +0000
commitb429d641d1c508f36f02be59e26967bf97bbd215 (patch)
tree094cddcc439ff1c532c315ae73c2b4e969da365f /gcc/config/tilegx/tilegx.c
parent14844884d52bbf500a4c55ff7233b6b5ab094443 (diff)
downloadgcc-b429d641d1c508f36f02be59e26967bf97bbd215.tar.gz
Switch eh data to always use pc relative/indirect encoding, to avoid
relocations of unaligned words. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197073 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/tilegx/tilegx.c')
-rw-r--r--gcc/config/tilegx/tilegx.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/gcc/config/tilegx/tilegx.c b/gcc/config/tilegx/tilegx.c
index 98f53f1993e..c6bdbe60284 100644
--- a/gcc/config/tilegx/tilegx.c
+++ b/gcc/config/tilegx/tilegx.c
@@ -4786,13 +4786,8 @@ tilegx_reorg (void)
int
tilegx_asm_preferred_eh_data_format (int code ATTRIBUTE_UNUSED, int global)
{
- if (flag_pic)
- {
- int type = TARGET_32BIT ? DW_EH_PE_sdata4 : DW_EH_PE_sdata8;
- return (global ? DW_EH_PE_indirect : 0) | DW_EH_PE_pcrel | type;
- }
- else
- return DW_EH_PE_absptr;
+ int type = TARGET_32BIT ? DW_EH_PE_sdata4 : DW_EH_PE_sdata8;
+ return (global ? DW_EH_PE_indirect : 0) | DW_EH_PE_pcrel | type;
}