diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2001-05-27 21:04:28 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-05-27 21:04:28 +0000 |
commit | 84b7783609980a52d9b4471bc3c558ea862dcb62 (patch) | |
tree | ddc105f7ab823ba9b7f49c48da4aa669a5fe6490 /gcc/stringpool.c | |
parent | 7b78a14a37cd517efee40901397dc272ecb55211 (diff) | |
download | gcc-84b7783609980a52d9b4471bc3c558ea862dcb62.zip gcc-84b7783609980a52d9b4471bc3c558ea862dcb62.tar.gz gcc-84b7783609980a52d9b4471bc3c558ea862dcb62.tar.bz2 |
c-decl.c (init_decl_processing): Don't call start_identifier_warnings.
* c-decl.c (init_decl_processing):
Don't call start_identifier_warnings.
* flags.h (warn_id_clash, id_clash_len): Remove.
* stringpool.c: Don't include flags.h.
(scan_for_clashes, do_identifier_warnings,
start_identifier_warnings): Remove.
* toplev.c (warn_id_clash, id_clash_len): Remove.
(display_help): Don't document -Wid-clash.
(decode_W_option): Print warning on -Wid-clash.
* tree.h (start_identifier_warnings): Remove.
* invoke.texi: Remove documentation of -Wid-clash.
From-SVN: r42665
Diffstat (limited to 'gcc/stringpool.c')
-rw-r--r-- | gcc/stringpool.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/gcc/stringpool.c b/gcc/stringpool.c index 7abca36..62d2a06 100644 --- a/gcc/stringpool.c +++ b/gcc/stringpool.c @@ -32,7 +32,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "ggc.h" #include "tree.h" #include "hashtable.h" -#include "flags.h" #include "toplev.h" /* The "" allocated string. */ @@ -47,13 +46,10 @@ const char digit_vector[] = { struct ht *ident_hash; static struct obstack string_stack; -static int do_identifier_warnings; static hashnode alloc_node PARAMS ((hash_table *)); static int mark_ident PARAMS ((struct cpp_reader *, hashnode, const PTR)); static void mark_ident_hash PARAMS ((void *)); -static int scan_for_clashes PARAMS ((struct cpp_reader *, hashnode, - const char *)); /* Initialize the string pool. */ void @@ -131,28 +127,6 @@ maybe_get_identifier (text) return NULL_TREE; } -/* If this identifier is longer than the clash-warning length, - do a brute force search of the entire table for clashes. */ - -static int -scan_for_clashes (pfile, h, text) - struct cpp_reader *pfile ATTRIBUTE_UNUSED; - hashnode h; - const char *text; -{ - tree node = HT_IDENT_TO_GCC_IDENT (h); - - if (IDENTIFIER_LENGTH (node) >= id_clash_len - && !memcmp (IDENTIFIER_POINTER (node), text, id_clash_len)) - { - warning ("\"%s\" and \"%s\" identical in first %d characters", - text, IDENTIFIER_POINTER (node), id_clash_len); - return 0; - } - - return 1; -} - /* Record the size of an identifier node for the language in use. SIZE is the total size in bytes. This is called by the language-specific files. This must be @@ -166,15 +140,6 @@ set_identifier_size (size) = (size - sizeof (struct tree_common)) / sizeof (tree); } -/* Enable warnings on similar identifiers (if requested). - Done after the built-in identifiers are created. */ - -void -start_identifier_warnings () -{ - do_identifier_warnings = 1; -} - /* Report some basic statistics about the string pool. */ void |