aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.h
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2001-07-02 12:16:58 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2001-07-02 12:16:58 +0000
commit6be777481ea7fa281c38dc84a76674e80013603b (patch)
tree23c0745f9141013fbdd206b748a7c2c6fad106d4 /gcc/c-common.h
parent3aa12a583f98074d6eaca377d9f3842df7c387ed (diff)
downloadgcc-6be777481ea7fa281c38dc84a76674e80013603b.zip
gcc-6be777481ea7fa281c38dc84a76674e80013603b.tar.gz
gcc-6be777481ea7fa281c38dc84a76674e80013603b.tar.bz2
c-common.h (TDI_inlined): New ast dump phase.
* c-common.h (TDI_inlined): New ast dump phase. (dump_flag_name): New function. * c-dump.c (dump_files): Add inlined phase. (dump_flag_name): Define. * doc/invoke.texi (-fdump-ast-inlined): Document. cp: * optimize.c (optimize_inline_calls): New function, broken out of ... (optimize_function): ... here. Call it. Don't inline if it is a thunk. (dump_function): Print name of dump flag causing this dump. * semantics.c (expand_body): Move thunk inline check to optimize_function. From-SVN: r43687
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r--gcc/c-common.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h
index 95ead54..147ffa4 100644
--- a/gcc/c-common.h
+++ b/gcc/c-common.h
@@ -826,9 +826,11 @@ extern int c_unsafe_for_reeval PARAMS ((tree));
enum tree_dump_index
{
TDI_all, /* dump the whole translation unit */
- TDI_original, /* dump each function before optimizing it */
- TDI_optimized, /* dump each function after optimizing it */
TDI_class, /* dump class heirarchy */
+ TDI_original, /* dump each function before optimizing it */
+ TDI_optimized, /* dump each function after optimizing it */
+ TDI_inlined, /* dump each function after inlining
+ within it. */
TDI_end
};
@@ -852,6 +854,7 @@ extern FILE *dump_begin PARAMS ((enum tree_dump_index, int *));
extern void dump_end PARAMS ((enum tree_dump_index, FILE *));
extern void dump_node PARAMS ((tree, int, FILE *));
extern int dump_switch_p PARAMS ((const char *));
+extern const char *dump_flag_name PARAMS ((enum tree_dump_index));
/* Information recorded about each file examined during compilation. */