summaryrefslogtreecommitdiffstats
path: root/gcc/langhooks.c
diff options
context:
space:
mode:
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-21 23:15:38 +0000
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-21 23:15:38 +0000
commitc31da6e7ee76fb3e31316d408f4ac94dd07b0ead (patch)
tree3beb113603745e909f02ca89d980838212400f0a /gcc/langhooks.c
parent5bcbe7f8b2ccd80f0c1b10851901f6ac17907459 (diff)
downloadppe42-gcc-c31da6e7ee76fb3e31316d408f4ac94dd07b0ead.tar.gz
ppe42-gcc-c31da6e7ee76fb3e31316d408f4ac94dd07b0ead.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51146 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/langhooks.c')
-rw-r--r--gcc/langhooks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/langhooks.c b/gcc/langhooks.c
index 4416ba937a5..4c4d7d6f120 100644
--- a/gcc/langhooks.c
+++ b/gcc/langhooks.c
@@ -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;
OpenPOWER on IntegriCloud