aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.h
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2003-10-22 13:58:10 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2003-10-22 11:58:10 +0000
commit1bb17c2144248180a1b00f5e5e6cf607fba0d46c (patch)
tree9d18905bfe933c3bc24bcf7b89cb85d08790b337 /gcc/cgraph.h
parente97c30aaa713e64309e3c0df2592f56e2a26e70e (diff)
downloadgcc-1bb17c2144248180a1b00f5e5e6cf607fba0d46c.zip
gcc-1bb17c2144248180a1b00f5e5e6cf607fba0d46c.tar.gz
gcc-1bb17c2144248180a1b00f5e5e6cf607fba0d46c.tar.bz2
re PR debug/12389 ([testcase needed] ICE in gen_subprogram_die for nested function)
PR debug/12389 * Makefile.in (dwarf2out.o): Depend on cgraph.h. * cgraph.c (cgraph_function_possibly_inlined_p): New function. * cgraph.h (cgraph_function_possibly_inlined_p): Declare. (cgraph_global_info): Add flag inlined * dwarf2out.c (gen_subprogram_die, gen_decl_die): Use cgraph_function_possibly_inded_p * cgraphunit.c (mark_inline): Set inlined flag. * toplev.c (rest_of_decl_compilation): Call outlining_inline_function only for possibly inlined functions. * c-decl.c (duplicate_decls): Never output abstract DIE representing old body of function. From-SVN: r72795
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r--gcc/cgraph.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index 9bdbfdc..a37227e 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -59,6 +59,9 @@ struct cgraph_global_info GTY(())
Once we inline all calls to the function and the function is local,
it is set to false. */
bool will_be_output;
+
+ /* Set iff at least one of the caller edges has inline_call flag set. */
+ bool inlined;
};
/* Information about the function that is propagated by the RTL backend.
@@ -168,6 +171,8 @@ void cgraph_varpool_mark_needed_node (struct cgraph_varpool_node *);
void cgraph_varpool_finalize_decl (tree);
bool cgraph_varpool_assemble_pending_decls (void);
+bool cgraph_function_possibly_inlined_p (tree);
+
/* In cgraphunit.c */
bool cgraph_assemble_pending_functions (void);
void cgraph_finalize_function (tree, bool);