toplev.c (process_options): Do not warn when -ffunction-sections and -fprofile are...
authorSriraman Tallam <tmsriram@google.com>
Fri, 7 Dec 2012 22:46:35 +0000 (22:46 +0000)
committerSriraman Tallam <tmsriram@gcc.gnu.org>
Fri, 7 Dec 2012 22:46:35 +0000 (22:46 +0000)
2012-12-07  Sriraman Tallan  <tmsriram@google.com>

* toplev.c (process_options): Do not warn when -ffunction-sections
and -fprofile are used together.

From-SVN: r194311

ChangeLog
gcc/toplev.c

index 5368aedcd5d9df7c2a43809becf65c1a0b07a3e4..49b17deb513506c9befcaed5803cce5a121f1a7c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-12-07  Sriraman Tallan  <tmsriram@google.com>
+
+       * toplev.c (process_options): Do not warn when -ffunction-sections
+       and -fprofile are used together.
+
 2012-12-01  Richard Sandiford  <rdsandiford@googlemail.com>
 
        * MAINTAINERS: Remove self as RTL optimization maintainer.
index 2c2898c65c76b92f159273a6df0875bb124af6b2..2f7957505a6117fd6ba50b2657c9d7e2f1e2671c 100644 (file)
@@ -1478,12 +1478,6 @@ process_options (void)
        }
     }
 
-  if (flag_function_sections && profile_flag)
-    {
-      warning (0, "-ffunction-sections disabled; it makes profiling impossible");
-      flag_function_sections = 0;
-    }
-
 #ifndef HAVE_prefetch
   if (flag_prefetch_loop_arrays > 0)
     {