summaryrefslogtreecommitdiff
path: root/gcc/ubsan.c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2016-05-06 09:47:25 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2016-05-06 09:47:25 +0000
commit29c94e65e1be846e8a71a3d24450c4cf1d1d5b41 (patch)
tree92fdb0faddfff9c5b045d105afa9159fe1b99b8f /gcc/ubsan.c
parent3684b02efb8df49a5795034657353d875333c86e (diff)
re PR sanitizer/70875 (ICE in get_ubsan_type_info_for_type with -fsanitize=undefined)
PR sanitizer/70875 * ubsan.c (get_ubsan_type_info_for_type): Remove assert. * gcc.dg/ubsan/bounds-3.c: New test. From-SVN: r235951
Diffstat (limited to 'gcc/ubsan.c')
-rw-r--r--gcc/ubsan.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/ubsan.c b/gcc/ubsan.c
index 802341e9995..c5543f821d8 100644
--- a/gcc/ubsan.c
+++ b/gcc/ubsan.c
@@ -302,7 +302,6 @@ ubsan_source_location (location_t loc)
static unsigned short
get_ubsan_type_info_for_type (tree type)
{
- gcc_assert (TYPE_SIZE (type) && tree_fits_uhwi_p (TYPE_SIZE (type)));
if (TREE_CODE (type) == REAL_TYPE)
return tree_to_uhwi (TYPE_SIZE (type));
else if (INTEGRAL_TYPE_P (type))