]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: tilegx.c (tilegx_asm_preferred_eh_data_format): Use indirect/pcrel encoding.
authorWalter Lee <walt@tilera.com>
Tue, 26 Mar 2013 06:27:55 +0000 (06:27 +0000)
committerWalter Lee <walt@gcc.gnu.org>
Tue, 26 Mar 2013 06:27:55 +0000 (06:27 +0000)
Backport from mainline:
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.

From-SVN: r197090

gcc/ChangeLog
gcc/config/tilegx/tilegx.c
gcc/config/tilepro/tilepro.c

index 4d21bb824523027f0132f3e57c82514da997d0fd..d7929950139c201e92e7ff277e92b6ef7d7d9c6d 100644 (file)
@@ -1,3 +1,13 @@
+2013-03-26  Walter Lee  <walt@tilera.com>
+
+       Backport from mainline:
+       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  Oleg Endo  <olegendo@gcc.gnu.org>
 
        Backport from mainline:
index 424027ffae2c7f2ca6b8eb80cf91bc2d9e38e788..de652c3bd3a0029eada55af492d45a0f027e29db 100644 (file)
@@ -4735,13 +4735,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;
 }
 
 
index 7cdb555a53e307596b053f882452c45fbdbe49c5..c2507c2aea82b7ac0649db07436a714f4b9548e2 100644 (file)
@@ -4340,10 +4340,7 @@ tilepro_reorg (void)
 int
 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;
-  else
-    return DW_EH_PE_absptr;
+  return (global ? DW_EH_PE_indirect : 0) | DW_EH_PE_pcrel | DW_EH_PE_sdata4;
 }