diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2011-04-19 11:22:35 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2011-04-19 11:22:35 +0000 |
commit | ff7037dca85dfd00c909950750137edae9963e12 (patch) | |
tree | 40a381637bf62eb0296001a34bedc2074de40a8c /gcc/tree-inline.c | |
parent | c1ee289264eb8606cc6458062bcfd756e76d688d (diff) | |
download | gcc-ff7037dca85dfd00c909950750137edae9963e12.zip gcc-ff7037dca85dfd00c909950750137edae9963e12.tar.gz gcc-ff7037dca85dfd00c909950750137edae9963e12.tar.bz2 |
tree-inline.c (expand_call_inline): Do not issue a -Winline warning if DECL_NO_INLINE_WARNING_P is set on the function.
* 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
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index ea4baac..c255f52 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -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)) |