Commit 192ea533 by Walter Lee Committed by Walter Lee

Switch eh data to always use pc relative/indirect encoding, to avoid

relocations of unaligned words.

From-SVN: r197073
parent 855e0d0b
2013-03-25 Walter Lee <walt@tilera.com>
* config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
Use indirect/pcrel encoding.
* config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
Ditto.
2013-03-25 Steve Ellcey <sellcey@mips.com> 2013-03-25 Steve Ellcey <sellcey@mips.com>
* config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1, * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
......
...@@ -4786,13 +4786,8 @@ tilegx_reorg (void) ...@@ -4786,13 +4786,8 @@ tilegx_reorg (void)
int int
tilegx_asm_preferred_eh_data_format (int code ATTRIBUTE_UNUSED, int global) 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; int type = TARGET_32BIT ? DW_EH_PE_sdata4 : DW_EH_PE_sdata8;
return (global ? DW_EH_PE_indirect : 0) | DW_EH_PE_pcrel | type; return (global ? DW_EH_PE_indirect : 0) | DW_EH_PE_pcrel | type;
}
else
return DW_EH_PE_absptr;
} }
......
...@@ -4338,10 +4338,7 @@ tilepro_reorg (void) ...@@ -4338,10 +4338,7 @@ tilepro_reorg (void)
int int
tilepro_asm_preferred_eh_data_format (int code ATTRIBUTE_UNUSED, int global) tilepro_asm_preferred_eh_data_format (int code ATTRIBUTE_UNUSED, int global)
{ {
if (flag_pic)
return (global ? DW_EH_PE_indirect : 0) | DW_EH_PE_pcrel | DW_EH_PE_sdata4; return (global ? DW_EH_PE_indirect : 0) | DW_EH_PE_pcrel | DW_EH_PE_sdata4;
else
return DW_EH_PE_absptr;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment