]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ia64.c (ia64_handle_option): Inform user that Itanium1 tuning is deprecated if...
authorSteven Bosscher <steven@gcc.gnu.org>
Wed, 1 Apr 2009 19:47:01 +0000 (19:47 +0000)
committerSteven Bosscher <steven@gcc.gnu.org>
Wed, 1 Apr 2009 19:47:01 +0000 (19:47 +0000)
* 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

gcc/ChangeLog
gcc/config/ia64/ia64.c

index 9e18af57f866e6790282612ba2034868aefc1ac9..04181d6572104ed43b33be53c92fca02cb9e48d0 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        PR c/29027
index da96fce6d4fbd28a660598f2753da8cbf260ace8..14cf42585b7a72760f359195cf9e56228f166209 100644 (file)
@@ -5212,6 +5212,8 @@ fix_range (const char *const_str)
 static bool
 ia64_handle_option (size_t code, const char *arg, int value)
 {
+  static bool warned_itanium1_deprecated;
+
   switch (code)
     {
     case OPT_mfixed_range_:
@@ -5245,6 +5247,16 @@ ia64_handle_option (size_t code, const char *arg, int value)
          if (!strcmp (arg, processor_alias_table[i].name))
            {
              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;
            }
        if (i == pta_size)