diff options
author | Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2008-04-06 12:18:56 +0000 |
---|---|---|
committer | François-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2008-04-06 12:18:56 +0000 |
commit | daf5afd48f1744d4f9dd4ed859160f0185b5e123 (patch) | |
tree | 2238573503df2780fc6735d7d616268a8dc3f77a /gcc | |
parent | 6c1abb5c58569e9655b1f92fd0d8e9d2e29c9c4f (diff) | |
download | gcc-daf5afd48f1744d4f9dd4ed859160f0185b5e123.zip gcc-daf5afd48f1744d4f9dd4ed859160f0185b5e123.tar.gz gcc-daf5afd48f1744d4f9dd4ed859160f0185b5e123.tar.bz2 |
* parse.c (gfc_parse_file): Use gfc_dump_parse_tree.
From-SVN: r133959
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/fortran/ChangeLog | 1 | ||||
-rw-r--r-- | gcc/fortran/parse.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index eaec1f5..64e5193 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -12,6 +12,7 @@ (gfc_handle_module_path_options): Use gfc_fatal_error instead of gfc_status and exit. (gfc_handle_option): Rename verbose into dump_parse_tree. + * parse.c (gfc_parse_file): Use gfc_dump_parse_tree. 2008-04-05 Jerry DeLisle <jvdelisle@gcc.gnu.org> Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> diff --git a/gcc/fortran/parse.c b/gcc/fortran/parse.c index d7d81a1..b133743 100644 --- a/gcc/fortran/parse.c +++ b/gcc/fortran/parse.c @@ -3566,8 +3566,8 @@ loop: gfc_resolve (gfc_current_ns); /* Dump the parse tree if requested. */ - if (gfc_option.verbose) - gfc_show_namespace (gfc_current_ns); + if (gfc_option.dump_parse_tree) + gfc_dump_parse_tree (gfc_current_ns, stdout); gfc_get_errors (NULL, &errors); if (s.state == COMP_MODULE) |