aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@gcc.gnu.org>2015-02-09 20:42:59 +0000
committerJan Hubicka <hubicka@gcc.gnu.org>2015-02-09 20:42:59 +0000
commitb8ec1bd3298611c791737123a476a13c1eb9e219 (patch)
tree7e9e04c4adfda6dd22b12d77bf19ea282812a96a /gcc
parent7d8adcba74fab09f7aec6f75fe038db834b646d9 (diff)
downloadgcc-b8ec1bd3298611c791737123a476a13c1eb9e219.zip
gcc-b8ec1bd3298611c791737123a476a13c1eb9e219.tar.gz
gcc-b8ec1bd3298611c791737123a476a13c1eb9e219.tar.bz2
ipa-devirt.c (odr_types_equivalent_p): Fix formating.
* ipa-devirt.c (odr_types_equivalent_p): Fix formating. (add_type_duplicate): Fix comparison of BINFOs. From-SVN: r220547
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ipa-devirt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c
index 790e483..fe4f41b 100644
--- a/gcc/ipa-devirt.c
+++ b/gcc/ipa-devirt.c
@@ -1222,7 +1222,7 @@ add_type_duplicate (odr_type val, tree type)
{
bool merge = true;
bool base_mismatch = false;
- unsigned int i,j;
+ unsigned int i;
bool warned = false;
hash_set<type_pair,pair_traits> visited;
@@ -1321,10 +1321,12 @@ add_type_duplicate (odr_type val, tree type)
break;
}
}
+#ifdef ENABLE_CHECKING
/* Sanity check that all bases will be build same way again. */
if (!base_mismatch && val->bases.length ())
{
unsigned int num_poly_bases = 0;
+ unsigned int j;
for (i = 0; i < BINFO_N_BASE_BINFOS (TYPE_BINFO (type)); i++)
if (polymorphic_type_binfo_p (BINFO_BASE_BINFO
@@ -1345,6 +1347,7 @@ add_type_duplicate (odr_type val, tree type)
j++;
}
}
+#endif
if (base_mismatch)
{
merge = false;