c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
authorZack Weinberg <zack@codesourcery.com>
Sat, 30 Aug 2003 21:24:19 +0000 (21:24 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Sat, 30 Aug 2003 21:24:19 +0000 (21:24 +0000)
commit766beae18707b9c9918bac392c8340d84aceffd1
tree224ec6b140b0764f4f59fa98e93fdcd681438b8c
parentbf7a697f0ad4399b6ef6abc542520c9be858356e
c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.

* c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
* c-typeck.c (same_translation_unit_p): New function.
(comptypes): Use it instead of flags parameter to identify
structure types from different translation units.
* c-decl.c (duplicate_decls): Always call comptypes with
COMPTYPE_STRICT flags argument.
(c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
to file_scope_decl.

From-SVN: r70953
gcc/ChangeLog
gcc/c-decl.c
gcc/c-tree.h
gcc/c-typeck.c