diff options
author | Mark Mitchell <mark@codesourcery.com> | 2000-03-01 00:54:49 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-03-01 00:54:49 +0000 |
commit | 38769add25b9fb5b4d60e98c60ab2d6fb8bf0854 (patch) | |
tree | 209d8f75820cae9e2175dba019513afd425b6537 /gcc/fold-const.c | |
parent | aa1e6de60cceb2383b282eab8e2d88d07f542b81 (diff) | |
download | gcc-38769add25b9fb5b4d60e98c60ab2d6fb8bf0854.zip gcc-38769add25b9fb5b4d60e98c60ab2d6fb8bf0854.tar.gz gcc-38769add25b9fb5b4d60e98c60ab2d6fb8bf0854.tar.bz2 |
fold-const.c (size_binop): Don't asert inputs are the same and have TYPE_IS_SIZETYPE set.
* fold-const.c (size_binop): Don't asert inputs are the same and
have TYPE_IS_SIZETYPE set.
(size_diffop): Likewise.
From-SVN: r32273
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 24bf6f1..097650f 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -1868,8 +1868,8 @@ size_binop (code, arg0, arg1) { tree type = TREE_TYPE (arg0); - if (type != TREE_TYPE (arg1) - || TREE_CODE (type) != INTEGER_TYPE || ! TYPE_IS_SIZETYPE (type)) + if (TREE_CODE (type) != INTEGER_TYPE + || TREE_CODE (TREE_TYPE (arg1)) != INTEGER_TYPE) abort (); /* Handle the special case of two integer constants faster. */ @@ -1905,8 +1905,8 @@ size_diffop (arg0, arg1) tree type = TREE_TYPE (arg0); tree ctype; - if (TREE_TYPE (arg1) != type || TREE_CODE (type) != INTEGER_TYPE - || ! TYPE_IS_SIZETYPE (type)) + if (TREE_CODE (type) != INTEGER_TYPE + || TREE_CODE (TREE_TYPE (arg1)) != INTEGER_TYPE) abort (); /* If the type is already signed, just do the simple thing. */ |