diff options
author | Robert Abeles <rabeles@archaelogic.com> | 2003-06-18 05:58:55 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2003-06-18 05:58:55 +0000 |
commit | f3f735eb70c33e4659e9d101c10492d6ff2aec23 (patch) | |
tree | 3f54ce2377191943369a5c1d59ec499eec18a0bc /gcc/tree-dump.c | |
parent | a1af4623ea5217822d3029c131d3f08904d914e1 (diff) | |
download | gcc-f3f735eb70c33e4659e9d101c10492d6ff2aec23.tar.gz |
re PR debug/4252 (cc1: Invalid option `-fdump-translation-unit')
PR debug/4252
* c-opts.c (c_common_handle_option): Pass -fdump argument suffix
to dump_switch_p().
* tree-dump.c (dump_switch_p): Remove redundant 'dump-' prefix
from static strings in dump_files.
cp:
* optimize.c (dump_function): Form complete flag name by
prefixing 'fdump-' to string returned by dump_flag_name().
java:
* lang.c (java_handle_option): Likewise.
From-SVN: r68137
Diffstat (limited to 'gcc/tree-dump.c')
-rw-r--r-- | gcc/tree-dump.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/tree-dump.c b/gcc/tree-dump.c index b9854469ded..c6e92e65c1f 100644 --- a/gcc/tree-dump.c +++ b/gcc/tree-dump.c @@ -646,11 +646,11 @@ struct dump_file_info TREE_DUMP_INDEX enumeration in tree.h */ static struct dump_file_info dump_files[TDI_end] = { - {".tu", "dump-translation-unit", 0, 0}, - {".class", "dump-class-hierarchy", 0, 0}, - {".original", "dump-tree-original", 0, 0}, - {".optimized", "dump-tree-optimized", 0, 0}, - {".inlined", "dump-tree-inlined", 0, 0}, + {".tu", "translation-unit", 0, 0}, + {".class", "class-hierarchy", 0, 0}, + {".original", "tree-original", 0, 0}, + {".optimized", "tree-optimized", 0, 0}, + {".inlined", "tree-inlined", 0, 0}, }; /* Define a name->number mapping for a dump flag value. */ @@ -758,7 +758,7 @@ dump_switch_p (const char *arg) flags |= option_ptr->value; goto found; } - warning ("ignoring unknown option `%.*s' in `-f%s'", + warning ("ignoring unknown option `%.*s' in `-fdump-%s'", length, ptr, dump_files[ix].swtch); found:; ptr = end_ptr; |