diff options
author | Martin Sebor <msebor@redhat.com> | 2018-02-05 22:45:04 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2018-02-05 15:45:04 -0700 |
commit | 48fe6bbb7137146df5d99707aae21f3aaa7d9ae2 (patch) | |
tree | b9c392a9674f726368573b4c876aaf83d2050154 /gcc/tree-ssa-ccp.c | |
parent | d66f032937c92a8fdc740187cf722715c342d6ad (diff) | |
download | gcc-48fe6bbb7137146df5d99707aae21f3aaa7d9ae2.zip gcc-48fe6bbb7137146df5d99707aae21f3aaa7d9ae2.tar.gz gcc-48fe6bbb7137146df5d99707aae21f3aaa7d9ae2.tar.bz2 |
PR tree-optimization/83369 - Missing diagnostics during inlining
gcc/ChangeLog:
PR tree-optimization/83369
* tree-ssa-ccp.c (pass_post_ipa_warn::execute): Use %G to print
inlining context.
gcc/testsuite/ChangeLog:
PR tree-optimization/83369
gcc.dg/Wnonnull.c: New test.
From-SVN: r257400
Diffstat (limited to 'gcc/tree-ssa-ccp.c')
-rw-r--r-- | gcc/tree-ssa-ccp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c index 5bae9a7..5591097 100644 --- a/gcc/tree-ssa-ccp.c +++ b/gcc/tree-ssa-ccp.c @@ -3458,8 +3458,8 @@ pass_post_ipa_warn::execute (function *fun) location_t loc = gimple_location (stmt); if (warning_at (loc, OPT_Wnonnull, - "argument %u null where non-null " - "expected", i + 1)) + "%Gargument %u null where non-null " + "expected", as_a <gcall *>(stmt), i + 1)) { tree fndecl = gimple_call_fndecl (stmt); if (fndecl && DECL_IS_BUILTIN (fndecl)) |