aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.h
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2001-09-04 12:12:50 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2001-09-04 12:12:50 +0000
commit223671612fba9ad84298792fa5dcfe1675be9084 (patch)
tree3ee4e117f64782e128a0b62f4646f1f75a953c45 /gcc/c-common.h
parent7fbb2f8444e6405b147bb263f4c6d8c5568e8594 (diff)
downloadgcc-223671612fba9ad84298792fa5dcfe1675be9084.zip
gcc-223671612fba9ad84298792fa5dcfe1675be9084.tar.gz
gcc-223671612fba9ad84298792fa5dcfe1675be9084.tar.bz2
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
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r--gcc/c-common.h9
1 files changed, 6 insertions, 3 deletions
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 */