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 | |
parent | a1af4623ea5217822d3029c131d3f08904d914e1 (diff) | |
download | gcc-f3f735eb70c33e4659e9d101c10492d6ff2aec23.zip gcc-f3f735eb70c33e4659e9d101c10492d6ff2aec23.tar.gz gcc-f3f735eb70c33e4659e9d101c10492d6ff2aec23.tar.bz2 |
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')
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/c-opts.c | 2 | ||||
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/optimize.c | 2 | ||||
-rw-r--r-- | gcc/java/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/java/lang.c | 2 | ||||
-rw-r--r-- | gcc/tree-dump.c | 12 |
7 files changed, 26 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 98ee56c..c92cd9d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2003-06-17 Robert Abeles <rabeles@archaelogic.com> + + 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. + 2003-06-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * system.h (ANSI_PROTOTYPES, PTR_CONST, LONG_DOUBLE, VPARAMS, diff --git a/gcc/c-opts.c b/gcc/c-opts.c index 9f0cde5..4d6ccd2 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -740,7 +740,7 @@ c_common_handle_option (size_t scode, const char *arg, int value) break; case OPT_fdump_: - if (!dump_switch_p (option->opt_text + strlen ("f"))) + if (!dump_switch_p (arg)) result = 0; break; diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 60c4cd7..96b21ff 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2003-06-17 Robert Abeles <rabeles@archaelogic.com> + + * optimize.c (dump_function): Form complete flag name by + prefixing 'fdump-' to string returned by dump_flag_name(). + 2003-06-17 Mark Mitchell <mark@codesourcery.com> * mangle.c (mangle_conv_op_name_for_type): Correct sprintf format diff --git a/gcc/cp/optimize.c b/gcc/cp/optimize.c index 2c1c15d..b5d0f8f 100644 --- a/gcc/cp/optimize.c +++ b/gcc/cp/optimize.c @@ -288,7 +288,7 @@ dump_function (enum tree_dump_index phase, tree fn) decl_as_string (fn, TFF_DECL_SPECIFIERS)); fprintf (stream, " (%s)\n", decl_as_string (DECL_ASSEMBLER_NAME (fn), 0)); - fprintf (stream, ";; enabled by -%s\n", dump_flag_name (phase)); + fprintf (stream, ";; enabled by -fdump-%s\n", dump_flag_name (phase)); fprintf (stream, "\n"); dump_node (fn, TDF_SLIM | flags, stream); diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 634aca6..b370870 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,7 @@ +2003-06-17 Robert Abeles <rabeles@archaelogic.com> + + * lang.c (java_handle_option): Likewise. + 2003-06-16 Neil Booth <neil@daikokuya.co.uk> * lang.c (java_handle_option): Special-casing of optional diff --git a/gcc/java/lang.c b/gcc/java/lang.c index 07d5647..e389ddc 100644 --- a/gcc/java/lang.c +++ b/gcc/java/lang.c @@ -376,7 +376,7 @@ java_handle_option (size_t scode, const char *arg, int value) break; case OPT_fdump_: - if (!dump_switch_p (option->opt_text + strlen ("f"))) + if (!dump_switch_p (arg)) return 0; break; diff --git a/gcc/tree-dump.c b/gcc/tree-dump.c index b985446..c6e92e6 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; |