diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-11-10 00:12:01 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-11-10 00:12:01 +0000 |
commit | 0c9a39fecb33a02c1ab98a5ded505d03fe2aeedb (patch) | |
tree | 7b154cfb8c329ba9830089d1fc85b59e76e64883 /gcc/fold-const.c | |
parent | 22ed6b1785418f26eca758a0c352a9b8bb7f6a1f (diff) | |
download | gcc-0c9a39fecb33a02c1ab98a5ded505d03fe2aeedb.tar.gz |
* fold-const.c (fold): Compare TYPE_MAIN_VARIANT rather than
the types themselves to discover type equivalence.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37354 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index da27f470f1e..f5b26993f4c 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -5099,7 +5099,7 @@ fold (expr) handled below, if we are converting something to its own type via an object of identical or wider precision, neither conversion is needed. */ - if (inside_type == final_type + if (TYPE_MAIN_VARIANT (inside_type) == TYPE_MAIN_VARIANT (final_type) && ((inter_int && final_int) || (inter_float && final_float)) && inter_prec >= final_prec) return TREE_OPERAND (TREE_OPERAND (t, 0), 0); |