aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorWalter Lee <walt@tilera.com>2014-01-25 20:12:23 +0000
committerWalter Lee <walt@gcc.gnu.org>2014-01-25 20:12:23 +0000
commitb0e0fe413361321b2c2825541f251ce2bf798dd2 (patch)
tree38fcef96ca9131b0c24b129f21947c3c0e62add5 /gcc
parent2c8798a2258d21f1a5baec46fbf98a959397cb49 (diff)
downloadgcc-b0e0fe413361321b2c2825541f251ce2bf798dd2.zip
gcc-b0e0fe413361321b2c2825541f251ce2bf798dd2.tar.gz
gcc-b0e0fe413361321b2c2825541f251ce2bf798dd2.tar.bz2
tilegx.c (tilegx_expand_to_rtl_hook): New.
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: r207077
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/tilegx/tilegx.c13
2 files changed, 18 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 563642e..5b9991d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+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-25 Richard Sandiford <rdsandiford@googlemail.com>
* rtlanal.c (canonicalize_condition): Split out duplicated mode check.
diff --git a/gcc/config/tilegx/tilegx.c b/gcc/config/tilegx/tilegx.c
index 654f836..85a46f7 100644
--- a/gcc/config/tilegx/tilegx.c
+++ b/gcc/config/tilegx/tilegx.c
@@ -719,6 +719,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
@@ -5515,6 +5525,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