+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
(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
{
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
tree fn = *fnp;
tree t;
- if (optimize == 0
+ if (flag_really_no_inline
&& lookup_attribute ("always_inline", DECL_ATTRIBUTES (fn)) == NULL)
return 1;
{
tree fn = *fnp;
- if (optimize == 0
+ if (flag_really_no_inline
&& lookup_attribute ("always_inline", DECL_ATTRIBUTES (fn)) == NULL)
return 1;
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;
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;
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. */