]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
alpha-common.c (alpha_option_init_struct): New function.
authorTristan Gingold <gingold@adacore.com>
Mon, 7 Nov 2011 08:33:14 +0000 (08:33 +0000)
committerTristan Gingold <gingold@gcc.gnu.org>
Mon, 7 Nov 2011 08:33:14 +0000 (08:33 +0000)
2011-11-07  Tristan Gingold  <gingold@adacore.com>

* common/config/alpha/alpha-common.c (alpha_option_init_struct):
New function.
(TARGET_OPTION_INIT_STRUCT): Define.
* config/alpha/alpha.c (TARGET_MIN_ANCHOR_OFFSET)
(TARGET_MAX_ANCHOR_OFFSET)
(TARGET_USE_BLOCKS_FOR_CONSTANT_P): Redefine.

From-SVN: r181074

gcc/ChangeLog
gcc/common/config/alpha/alpha-common.c
gcc/config/alpha/alpha.c

index eefe0556598450e83df1125d9270428e5d2bdd66..f8f33d90a82194bf62ac8e4f554dd77731eae74f 100644 (file)
@@ -1,3 +1,12 @@
+2011-11-07  Tristan Gingold  <gingold@adacore.com>
+
+       * common/config/alpha/alpha-common.c (alpha_option_init_struct):
+       New function.
+       (TARGET_OPTION_INIT_STRUCT): Define.
+       * config/alpha/alpha.c (TARGET_MIN_ANCHOR_OFFSET)
+       (TARGET_MAX_ANCHOR_OFFSET)
+       (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Redefine.
+
 2011-11-06  Quentin Neill  <quentin.neill@amd.com>
 
        Fix r180999, update ChangeLog
index fcf5369034d177057192eaebf93ca5e72661bbde..8a366b687c9e1684fccd0914ec93efa320a15420 100644 (file)
@@ -36,6 +36,17 @@ static const struct default_options alpha_option_optimization_table[] =
     { OPT_LEVELS_NONE, 0, NULL, 0 }
   };
 
+/* Implement TARGET_OPTION_INIT_STRUCT.  */
+
+static void
+alpha_option_init_struct (struct gcc_options *opts ATTRIBUTE_UNUSED)
+{
+#if TARGET_ABI_OPEN_VMS
+  /* Enable section anchors by default.  */
+  opts->x_flag_section_anchors = 1;
+#endif
+}
+
 /* Implement TARGET_HANDLE_OPTION.  */
 
 static bool
@@ -75,6 +86,9 @@ alpha_handle_option (struct gcc_options *opts,
 #undef TARGET_HANDLE_OPTION
 #define TARGET_HANDLE_OPTION alpha_handle_option
 
+#undef TARGET_OPTION_INIT_STRUCT
+#define TARGET_OPTION_INIT_STRUCT alpha_option_init_struct
+
 #undef TARGET_OPTION_OPTIMIZATION_TABLE
 #define TARGET_OPTION_OPTIMIZATION_TABLE alpha_option_optimization_table
 
index 682e5beafbfecb73362e3c0a4c249df34c8a4db6..9a43f80243f1f15e241f1022223e966b9082e2f0 100644 (file)
@@ -9643,6 +9643,14 @@ alpha_conditional_register_usage (void)
 #define TARGET_STDARG_OPTIMIZE_HOOK alpha_stdarg_optimize_hook
 #endif
 
+/* Use 16-bits anchor.  */
+#undef TARGET_MIN_ANCHOR_OFFSET
+#define TARGET_MIN_ANCHOR_OFFSET -0x7fff - 1
+#undef TARGET_MAX_ANCHOR_OFFSET
+#define TARGET_MAX_ANCHOR_OFFSET 0x7fff
+#undef TARGET_USE_BLOCKS_FOR_CONSTANT_P
+#define TARGET_USE_BLOCKS_FOR_CONSTANT_P hook_bool_mode_const_rtx_true
+
 #undef TARGET_RTX_COSTS
 #define TARGET_RTX_COSTS alpha_rtx_costs
 #undef TARGET_ADDRESS_COST