aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatoly Sokolov <aesok@post.ru>2010-07-09 00:43:22 +0400
committerAnatoly Sokolov <aesok@gcc.gnu.org>2010-07-09 00:43:22 +0400
commit930572b9069372c1729a5a66ca2ac9061024f62f (patch)
tree54122389cce6b0e75c83e676ccfbdb13ffd820b6
parent5951297a1afe3039a9716f2cb6ee924a7a388f37 (diff)
downloadgcc-930572b9069372c1729a5a66ca2ac9061024f62f.zip
gcc-930572b9069372c1729a5a66ca2ac9061024f62f.tar.gz
gcc-930572b9069372c1729a5a66ca2ac9061024f62f.tar.bz2
ia64.h (OVERRIDE_OPTIONS): Remove macros.
* config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros. * config/ia64/ia64-protos.h (ia64_override_options): Remove. * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define. (ia64_override_options): Rename to... (ia64_option_override): ... this one. Make static. From-SVN: r161975
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/config/ia64/ia64-protos.h1
-rw-r--r--gcc/config/ia64/ia64.c10
-rw-r--r--gcc/config/ia64/ia64.h7
4 files changed, 15 insertions, 11 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c9c5fc9..f1fe75b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+2010-07-08 Anatoly Sokolov <aesok@post.ru>
+
+ * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
+ * config/ia64/ia64-protos.h (ia64_override_options): Remove.
+ * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
+ (ia64_override_options): Rename to...
+ (ia64_option_override): ... this one. Make static.
+
2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
PR middle-end/44843
diff --git a/gcc/config/ia64/ia64-protos.h b/gcc/config/ia64/ia64-protos.h
index a5914b1..0a5af40 100644
--- a/gcc/config/ia64/ia64-protos.h
+++ b/gcc/config/ia64/ia64-protos.h
@@ -86,7 +86,6 @@ extern int ia64_epilogue_uses (int);
extern int ia64_eh_uses (int);
extern void emit_safe_across_calls (void);
extern void ia64_init_builtins (void);
-extern void ia64_override_options (void);
extern int ia64_dbx_register_number (int);
extern rtx ia64_return_addr_rtx (HOST_WIDE_INT, rtx);
diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c
index 032b468..865d2ab 100644
--- a/gcc/config/ia64/ia64.c
+++ b/gcc/config/ia64/ia64.c
@@ -201,6 +201,7 @@ static rtx gen_movdi_x (rtx, rtx, rtx);
static rtx gen_fr_spill_x (rtx, rtx, rtx);
static rtx gen_fr_restore_x (rtx, rtx, rtx);
+static void ia64_option_override (void);
static bool ia64_can_eliminate (const int, const int);
static enum machine_mode hfa_element_mode (const_tree, bool);
static void ia64_setup_incoming_varargs (CUMULATIVE_ARGS *, enum machine_mode,
@@ -354,6 +355,9 @@ static const struct attribute_spec ia64_attribute_table[] =
#undef TARGET_ASM_INTEGER
#define TARGET_ASM_INTEGER ia64_assemble_integer
+#undef TARGET_OPTION_OVERRIDE
+#define TARGET_OPTION_OVERRIDE ia64_option_override
+
#undef TARGET_ASM_FUNCTION_PROLOGUE
#define TARGET_ASM_FUNCTION_PROLOGUE ia64_output_function_prologue
#undef TARGET_ASM_FUNCTION_END_PROLOGUE
@@ -5564,10 +5568,10 @@ ia64_handle_option (size_t code, const char *arg, int value)
}
}
-/* Implement OVERRIDE_OPTIONS. */
+/* Implement TARGET_OPTION_OVERRIDE. */
-void
-ia64_override_options (void)
+static void
+ia64_option_override (void)
{
if (TARGET_AUTO_PIC)
target_flags |= MASK_CONST_GP;
diff --git a/gcc/config/ia64/ia64.h b/gcc/config/ia64/ia64.h
index f631cee..047a043 100644
--- a/gcc/config/ia64/ia64.h
+++ b/gcc/config/ia64/ia64.h
@@ -116,13 +116,6 @@ enum processor_type
extern enum processor_type ia64_tune;
-/* Sometimes certain combinations of command options do not make sense on a
- particular target machine. You can define a macro `OVERRIDE_OPTIONS' to
- take account of this. This macro, if defined, is executed once just after
- all the command options have been parsed. */
-
-#define OVERRIDE_OPTIONS ia64_override_options ()
-
/* Some machines may desire to change what optimizations are performed for
various optimization levels. This macro, if defined, is executed once just
after the optimization level is determined and before the remainder of the