Commit bbb6eae8 by Steven Bosscher

ia64.c (ia64_handle_option): Inform user that Itanium1 tuning is deprecated if...

	* config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
	tuning is deprecated if -mtune value is set to an Itanium1 variant.

From-SVN: r145427
parent a5b38cdf
2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
* config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
tuning is deprecated if -mtune value is set to an Itanium1 variant.
2009-04-01 Janis Johnson <janis187@us.ibm.com> 2009-04-01 Janis Johnson <janis187@us.ibm.com>
PR c/29027 PR c/29027
......
...@@ -5212,6 +5212,8 @@ fix_range (const char *const_str) ...@@ -5212,6 +5212,8 @@ fix_range (const char *const_str)
static bool static bool
ia64_handle_option (size_t code, const char *arg, int value) ia64_handle_option (size_t code, const char *arg, int value)
{ {
static bool warned_itanium1_deprecated;
switch (code) switch (code)
{ {
case OPT_mfixed_range_: case OPT_mfixed_range_:
...@@ -5245,6 +5247,16 @@ ia64_handle_option (size_t code, const char *arg, int value) ...@@ -5245,6 +5247,16 @@ ia64_handle_option (size_t code, const char *arg, int value)
if (!strcmp (arg, processor_alias_table[i].name)) if (!strcmp (arg, processor_alias_table[i].name))
{ {
ia64_tune = processor_alias_table[i].processor; ia64_tune = processor_alias_table[i].processor;
if (ia64_tune == PROCESSOR_ITANIUM
&& ! warned_itanium1_deprecated)
{
inform (0,
"value %<%s%> for -mtune= switch is deprecated",
arg);
inform (0, "GCC 4.4 is the last release with "
"Itanium1 tuning support");
warned_itanium1_deprecated = true;
}
break; break;
} }
if (i == pta_size) if (i == pta_size)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment