mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-02 20:00:36 +08:00
langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check flag_really_no_inline instead of optimize == 0.
2002-03-21 Aldy Hernandez <aldyh@redhat.com> * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check flag_really_no_inline instead of optimize == 0. * c-objc-common.c (c_cannot_inline_tree_fn): Same. * cp/tree.c (cp_cannot_inline_tree_fn): Same. * flags.h (flag_really_no_inline): New. * c-common.c (c_common_post_options): Initialzie flag_really_no_inline. * toplev.c (flag_really_no_inline): New. From-SVN: r51146
This commit is contained in:
parent
239b8b9dd6
commit
2cb921f417
@ -1,3 +1,19 @@
|
||||
2002-03-21 Aldy Hernandez <aldyh@redhat.com>
|
||||
|
||||
* langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
|
||||
flag_really_no_inline instead of optimize == 0.
|
||||
|
||||
* c-objc-common.c (c_cannot_inline_tree_fn): Same.
|
||||
|
||||
* cp/tree.c (cp_cannot_inline_tree_fn): Same.
|
||||
|
||||
* flags.h (flag_really_no_inline): New.
|
||||
|
||||
* c-common.c (c_common_post_options): Initialzie
|
||||
flag_really_no_inline.
|
||||
|
||||
* toplev.c (flag_really_no_inline): New.
|
||||
|
||||
2002-03-21 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* config/avr/avr.md (length): Fix length computation for
|
||||
@ -360,6 +376,7 @@ Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
|
||||
(movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
|
||||
Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
|
||||
|
||||
>>>>>>> 1.13452
|
||||
2002-03-18 Aldy Hernandez <aldyh@redhat.com>
|
||||
|
||||
* config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
|
||||
|
@ -4100,6 +4100,9 @@ c_common_post_options ()
|
||||
{
|
||||
cpp_post_options (parse_in);
|
||||
|
||||
/* Save no-inline information we may clobber below. */
|
||||
flag_really_no_inline = flag_no_inline;
|
||||
|
||||
flag_inline_trees = 1;
|
||||
|
||||
/* Use tree inlining if possible. Function instrumentation is only
|
||||
|
@ -146,7 +146,7 @@ c_cannot_inline_tree_fn (fnp)
|
||||
tree fn = *fnp;
|
||||
tree t;
|
||||
|
||||
if (optimize == 0
|
||||
if (flag_really_no_inline
|
||||
&& lookup_attribute ("always_inline", DECL_ATTRIBUTES (fn)) == NULL)
|
||||
return 1;
|
||||
|
||||
|
@ -2131,7 +2131,7 @@ cp_cannot_inline_tree_fn (fnp)
|
||||
{
|
||||
tree fn = *fnp;
|
||||
|
||||
if (optimize == 0
|
||||
if (flag_really_no_inline
|
||||
&& lookup_attribute ("always_inline", DECL_ATTRIBUTES (fn)) == NULL)
|
||||
return 1;
|
||||
|
||||
|
@ -380,6 +380,11 @@ extern int flag_keep_inline_functions;
|
||||
|
||||
extern int flag_no_inline;
|
||||
|
||||
/* Nonzero means that we don't want inlining by virtue of -fno-inline,
|
||||
not just because the tree inliner turned us off. */
|
||||
|
||||
extern int flag_really_no_inline;
|
||||
|
||||
/* Nonzero if we are only using compiler to check syntax errors. */
|
||||
|
||||
extern int flag_syntax_only;
|
||||
|
@ -174,7 +174,7 @@ int
|
||||
lhd_tree_inlining_cannot_inline_tree_fn (fnp)
|
||||
tree *fnp;
|
||||
{
|
||||
if (optimize == 0
|
||||
if (flag_really_no_inline
|
||||
&& lookup_attribute ("always_inline", DECL_ATTRIBUTES (*fnp)) == NULL)
|
||||
return 1;
|
||||
|
||||
|
@ -646,6 +646,11 @@ int flag_keep_inline_functions;
|
||||
|
||||
int flag_no_inline;
|
||||
|
||||
/* Nonzero means that we don't want inlining by virtue of -fno-inline,
|
||||
not just because the tree inliner turned us off. */
|
||||
|
||||
int flag_really_no_inline;
|
||||
|
||||
/* Nonzero means that we should emit static const variables
|
||||
regardless of whether or not optimization is turned on. */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user