ipa-utils.h (type_with_linkage_p): Verify that type is CXX_ODR_P.
authorJan Hubicka <jh@suse.cz>
Mon, 24 Jun 2019 21:13:12 +0000 (23:13 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 24 Jun 2019 21:13:12 +0000 (21:13 +0000)
commitf4af4019dfb79f92adcf7cee4ef9e5f6ff428a37
tree2344514a98c3312cba34b09afe63f6f1962da351
parentcd57f4d81bdefeca6133dc52db8b7832a867686b
ipa-utils.h (type_with_linkage_p): Verify that type is CXX_ODR_P.

* ipa-utils.h (type_with_linkage_p): Verify that type is
CXX_ODR_P.
(odr_type_p): Remove extra return.
* lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
hash STRING_FLAG only for arrays and integers.
* tree-stremaer-in.c (unpack_ts_type_common_value_fields):
Update analogously.
* tree-streamer-out.c (pack_ts_type_common_value_fields):
Likewise.
* print-tree.c (print_node): Print cxx-odr-p
and string-flag.
* tree.c (need_assembler_name_p): Also check that type
is CXX_ODR_TYPE_P
(verify_type_variant): Update verification of SRING_FLAG;
also check CXX_ODR_P.
* tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
(TYPE_STRING_FLAG): Use it.
(TYPE_CXX_ODR_P): New macro.

* lto-common.c (compare_tree_sccs_1): Compare CXX_ODR_P;
compare STRING_FLAG only for arrays and integers.

* gcc-interface/decl.c (gnat_to_gnu_entity): Check that
type is array or integer prior checking string flag.
* gcc-interface/gigi.h (gnat_signed_type_for,
maybe_character_value): Likewise.

* c-common.c (braced_lists_to_strings): Check that
type is array or integer prior checking string flag.

* lex.c (cxx_make_type): Set TYPE_CXX_ODR_P.

* dwarf2out.c (gen_array_type_die): First check that type
is an array and then test string flag.

* trans-expr.c (gfc_conv_substring): Check that
type is array or integer prior checking string flag.
(gfc_conv_string_parameter): Likewise.
* trans-openmp.c (gfc_omp_scalar_p): Likewise.
* trans.c (gfc_build_array_ref): Likewise.

From-SVN: r272628
23 files changed:
gcc/ChangeLog
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/ada/gcc-interface/gigi.h
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/cp/ChangeLog
gcc/cp/lex.c
gcc/dwarf2out.c
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/fortran/trans-openmp.c
gcc/fortran/trans.c
gcc/ipa-utils.h
gcc/lto-streamer-out.c
gcc/lto/ChangeLog
gcc/lto/lto-common.c
gcc/print-tree.c
gcc/tree-core.h
gcc/tree-streamer-in.c
gcc/tree-streamer-out.c
gcc/tree.c
gcc/tree.h