From 223671612fba9ad84298792fa5dcfe1675be9084 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Tue, 4 Sep 2001 12:12:50 +0000 Subject: c-common.h (tree_dump_index): Add more comments. * c-common.h (tree_dump_index): Add more comments. * c-dump.c (dump_files): Name flags `tree' rather than `ast'. (dump_option_value_info): New struct. (dump_options): New array. (dump_switch_p): Parse switch options symbolically. * doc/invoke.texi (-fdump-ast): Rename to ... (-fdump-tree): ... here. Document that options are symbolic, and not all are applicable. From-SVN: r45373 --- gcc/c-common.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'gcc/c-common.h') diff --git a/gcc/c-common.h b/gcc/c-common.h index e93f212..26933b7 100644 --- a/gcc/c-common.h +++ b/gcc/c-common.h @@ -844,9 +844,10 @@ extern int c_safe_from_p PARAMS ((rtx, tree)); extern int c_unsafe_for_reeval PARAMS ((tree)); -/* In dump.c */ +/* In c-dump.c */ -/* Different tree dump places. */ +/* Different tree dump places. When you add new tree dump places, + extend the DUMP_FILES array in c-dump.c */ enum tree_dump_index { TDI_all, /* dump the whole translation unit */ @@ -858,7 +859,9 @@ enum tree_dump_index TDI_end }; -/* Bit masks to control tree dumping. */ +/* Bit masks to control tree dumping. Not all values are applicable to + all tree dumps. Add new ones at the end. When you define new + values, extend the DUMP_OPTIONS array in c-dump.c */ #define TDF_ADDRESS (1 << 0) /* dump node addresses */ #define TDF_SLIM (1 << 1) /* don't go wild following links */ -- cgit v1.1