Patchwork [google] suppress LIPO notes (issue5356041)

login
register
mail settings
Submitter Rong Xu
Date Nov. 4, 2011, 5:39 p.m.
Message ID <20111104173946.510E6C1F62@rong.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/123675/
State New
Headers show

Comments

Rong Xu - Nov. 4, 2011, 5:39 p.m.
Suppress another LIPO notes. Move it under fopt-info.

For google branch only.

Tested with internal branchmark suite.

2011-11-04   Rong Xu  <xur@google.com>

	* gcc/c-family/c-opts.c: move the notes under fopt-info.


--
This patch is available for review at http://codereview.appspot.com/5356041
Xinliang David Li - Nov. 4, 2011, 5:42 p.m.
ok.

David

On Fri, Nov 4, 2011 at 10:39 AM, Rong Xu <xur@google.com> wrote:
> Suppress another LIPO notes. Move it under fopt-info.
>
> For google branch only.
>
> Tested with internal branchmark suite.
>
> 2011-11-04   Rong Xu  <xur@google.com>
>
>        * gcc/c-family/c-opts.c: move the notes under fopt-info.
>
> Index: gcc/c-family/c-opts.c
> ===================================================================
> --- gcc/c-family/c-opts.c       (revision 180964)
> +++ gcc/c-family/c-opts.c       (working copy)
> @@ -1104,8 +1104,9 @@
>           > (size_t) PARAM_VALUE (PARAM_MAX_LIPO_MEMORY))) {
>     i++;
>     do {
> -      inform (input_location, "Not importing %s: maximum memory "
> -             "consumption reached", in_fnames[i]);
> +      if (flag_opt_info >= OPT_INFO_MED)
> +        inform (input_location, "Not importing %s: maximum memory "
> +                "consumption reached", in_fnames[i]);
>       i++;
>     } while (i < num_in_fnames);
>     return true;
>
> --
> This patch is available for review at http://codereview.appspot.com/5356041
>

Patch

Index: gcc/c-family/c-opts.c
===================================================================
--- gcc/c-family/c-opts.c	(revision 180964)
+++ gcc/c-family/c-opts.c	(working copy)
@@ -1104,8 +1104,9 @@ 
           > (size_t) PARAM_VALUE (PARAM_MAX_LIPO_MEMORY))) {
     i++;
     do {
-      inform (input_location, "Not importing %s: maximum memory "
-	      "consumption reached", in_fnames[i]);
+      if (flag_opt_info >= OPT_INFO_MED)
+        inform (input_location, "Not importing %s: maximum memory "
+                "consumption reached", in_fnames[i]);
       i++;
     } while (i < num_in_fnames);
     return true;