]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: tilegx.c (tilegx_expand_to_rtl_hook): New.
authorWalter Lee <walt@tilera.com>
Sat, 25 Jan 2014 22:42:28 +0000 (22:42 +0000)
committerWalter Lee <walt@gcc.gnu.org>
Sat, 25 Jan 2014 22:42:28 +0000 (22:42 +0000)
2014-01-25  Walter Lee  <walt@tilera.com>

            Backport from mainline
            2014-01-25  Walter Lee  <walt@tilera.com>

            * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
            (TARGET_EXPAND_TO_RTL_HOOK): Define.

From-SVN: r207099

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

index 8660db337f3c2b9524a1185a277d48fffe30e204..edcfb71ffd359fb4e17df5ff3c618f4295580a5f 100644 (file)
@@ -1,3 +1,11 @@
+2014-01-25  Walter Lee  <walt@tilera.com>
+
+       Backport from mainline
+       2014-01-25  Walter Lee  <walt@tilera.com>
+
+       * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
+       (TARGET_EXPAND_TO_RTL_HOOK): Define.
+
 2014-01-22  Uros Bizjak  <ubizjak@gmail.com>
            Jakub Jelinek  <jakub@redhat.com>
 
index 81e015d49bc5f1ad8defc59c21e3b08cd1e83089..6514363c17f523f07a6a2fa0c12797f2972f47e6 100644 (file)
@@ -678,6 +678,16 @@ tilegx_init_expanders (void)
 }
 
 
+/* Implement TARGET_EXPAND_TO_RTL_HOOK.  */
+static void
+tilegx_expand_to_rtl_hook (void)
+{
+  /* Exclude earlier sets of crtl->uses_pic_offset_table, because we
+     only care about uses actually emitted.  */
+  crtl->uses_pic_offset_table = 0;
+}
+
+
 /* Implement TARGET_SHIFT_TRUNCATION_MASK.  DImode shifts use the mode
    matching insns and therefore guarantee that the shift count is
    modulo 64.  SImode shifts sometimes use the 64 bit version so do
@@ -5428,6 +5438,9 @@ tilegx_file_end (void)
 #undef  TARGET_RTX_COSTS
 #define TARGET_RTX_COSTS tilegx_rtx_costs
 
+#undef  TARGET_EXPAND_TO_RTL_HOOK
+#define TARGET_EXPAND_TO_RTL_HOOK tilegx_expand_to_rtl_hook
+
 #undef  TARGET_SHIFT_TRUNCATION_MASK
 #define TARGET_SHIFT_TRUNCATION_MASK tilegx_shift_truncation_mask