Make warn_inline Optimization option.
authorMartin Liska <mliska@suse.cz>
Tue, 7 Jan 2020 09:15:38 +0000 (10:15 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 7 Jan 2020 09:15:38 +0000 (09:15 +0000)
commita924bffba921d568fbd65210857e1b5031776bb8
tree3ff270edba232c10d064cf0c88f79552ca301740
parenta86689f5e9b939a4fc020b873fd9fca6ed98f1e5
Make warn_inline Optimization option.

2020-01-07  Martin Liska  <mliska@suse.cz>

PR tree-optimization/92860
* common.opt: Make in Optimization option
as it is affected by -O0, which is an Optimization
option.
* tree-inline.c (tree_inlinable_function_p):
Use opt_for_fn for warn_inline.
(expand_call_inline): Likewise.
2020-01-07  Martin Liska  <mliska@suse.cz>

PR tree-optimization/92860
* gcc.dg/pr92860-2.c: New test.

From-SVN: r279947
gcc/ChangeLog
gcc/common.opt
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr92860-2.c [new file with mode: 0644]
gcc/tree-inline.c