diff options
author | Roger Sayle <roger@eyesopen.com> | 2006-11-11 01:47:18 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2006-11-11 01:47:18 +0000 |
commit | b8b7f1621f4c8270babb2a492e3f58413a368741 (patch) | |
tree | 44698d4692f54c1fccaf5bfd54844b6aeb857b34 /gcc/tree.c | |
parent | 845e145b6d78551fda4bf8fea6c5b3634b0fb71f (diff) | |
download | gcc-b8b7f1621f4c8270babb2a492e3f58413a368741.zip gcc-b8b7f1621f4c8270babb2a492e3f58413a368741.tar.gz gcc-b8b7f1621f4c8270babb2a492e3f58413a368741.tar.bz2 |
tree.c (build_int_cst_wide): Add an assertion (gcc_unreachable) when attempting to build INTEGER_CSTs of...
* tree.c (build_int_cst_wide): Add an assertion (gcc_unreachable)
when attempting to build INTEGER_CSTs of non-integral types.
* expmed.c (make_tree): Use the correct type, i.e. the inner
type, when constructing the individual elements of a CONST_VECTOR.
From-SVN: r118678
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -844,8 +844,12 @@ build_int_cst_wide (tree type, unsigned HOST_WIDE_INT low, HOST_WIDE_INT hi) ix = 0; } break; - default: + + case ENUMERAL_TYPE: break; + + default: + gcc_unreachable (); } if (ix >= 0) |