tree-inline.c (expand_call_inline): Do not issue a -Winline warning if DECL_NO_INLINE...
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 19 Apr 2011 11:22:35 +0000 (11:22 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 19 Apr 2011 11:22:35 +0000 (11:22 +0000)
* tree-inline.c (expand_call_inline): Do not issue a -Winline warning
if DECL_NO_INLINE_WARNING_P is set on the function.

From-SVN: r172707

gcc/ChangeLog
gcc/tree-inline.c

index 9ad06f8fd7e6a4b263e760bea90a08a6f0bf497a..b119fa766a5463c82b67f954985bf203b597a096 100644 (file)
@@ -1,3 +1,8 @@
+2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
+       if DECL_NO_INLINE_WARNING_P is set on the function.
+
 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
 
        PR fortran/47976
@@ -41,7 +46,6 @@
        * config/vms/vms-ar.c: New file.
        * config/vms/t-vmsnative: New file.
 
->>>>>>> .r172704
 2011-04-18  Xinliang David Li  <davidxl@google.com>
 
        * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
index ea4baac1f4e9e4d5b3546ccecaf7a14500c8fe2d..c255f52f7398fbeea06418dc0d23451df601eeda 100644 (file)
@@ -3744,7 +3744,9 @@ expand_call_inline (basic_block bb, gimple stmt, copy_body_data *id)
                 _(cgraph_inline_failed_string (reason)));
          sorry ("called from here");
        }
-      else if (warn_inline && DECL_DECLARED_INLINE_P (fn)
+      else if (warn_inline
+              && DECL_DECLARED_INLINE_P (fn)
+              && !DECL_NO_INLINE_WARNING_P (fn)
               && !DECL_IN_SYSTEM_HEADER (fn)
               && reason != CIF_UNSPECIFIED
               && !lookup_attribute ("noinline", DECL_ATTRIBUTES (fn))