diff options
author | DJ Delorie <dj@redhat.com> | 2005-06-28 15:33:23 -0400 |
---|---|---|
committer | DJ Delorie <dj@gcc.gnu.org> | 2005-06-28 15:33:23 -0400 |
commit | 3176a0c28f6c38963c5beecdbbd44a91b62fc8eb (patch) | |
tree | 4f329fdddb0353188ddf7618481f6dfb4b14591c /gcc/tree-inline.c | |
parent | cec471db31969b339e4d6a7782ec398f9ccdbf28 (diff) | |
download | gcc-3176a0c28f6c38963c5beecdbbd44a91b62fc8eb.zip gcc-3176a0c28f6c38963c5beecdbbd44a91b62fc8eb.tar.gz gcc-3176a0c28f6c38963c5beecdbbd44a91b62fc8eb.tar.bz2 |
c-decl.c (pop_scope): Move warning control into warning call.
* c-decl.c (pop_scope): Move warning control into warning call.
(diagnose_mismatched_decls): Likewise.
(pushdecl): Likewise.
(start_decl): Likewise.
(grokparms): Likewise.
(start_function): Likewise.
(store_parm_decls_newstyle): Likewise.
(store_parm_decls_oldstyle): Likewise.
(finish_function): Likewise.
(declspecs_add_scspec): Likewise.
* c-format.c (decode_format_attr): Likewise.
(maybe_read_dollar_number): Likewise.
(avoid_dollar_number): Likewise.
(finish_dollar_format_checking): Likewise.
(check_format_info): Likewise.
(check_format_info_main): Likewise.
(check_format_types): Likewise.
(format_type_warning): Likewise.
* c-typeck.c (function_types_compatible_p): Likewise.
(build_array_ref): Likewise.
(convert_arguments): Likewise.
(build_c_cast): Likewise.
(store_init_value): Likewise.
(process_init_element): Likewise.
(c_start_case): Likewise.
* stor-layout.c (finalize_record_size): Likewise.
* tree-cfg.c (execute_warn_function_noreturn): Likewise.
* tree-inline.c (expand_call_inline): Likewise.
From-SVN: r101384
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 6657070..16f6164 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -1973,8 +1973,9 @@ expand_call_inline (basic_block bb, tree stmt, tree *tp, void *data) /* Avoid warnings during early inline pass. */ && (!flag_unit_at_a_time || cgraph_global_info_ready)) { - warning (0, "%Jinlining failed in call to %qF: %s", fn, fn, reason); - warning (0, "called from here"); + warning (OPT_Winline, "%Jinlining failed in call to %qF: %s", + fn, fn, reason); + warning (OPT_Winline, "called from here"); } goto egress; } |