summaryrefslogtreecommitdiff
path: root/gcc/omp-low.c
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2009-08-19 14:29:52 +0000
committerMichael Matz <matz@gcc.gnu.org>2009-08-19 14:29:52 +0000
commit9600efe1a6c42b8acf7449561760c36968155f83 (patch)
tree8489ea3ed78727eeb377ad35611c3a1779e5bb14 /gcc/omp-low.c
parent10174ddf5d0e0e2293e54ebc14f9c49a9983de98 (diff)
downloadgcc-9600efe1a6c42b8acf7449561760c36968155f83.tar.gz
omp-low.c (optimize_omp_library_calls): Use types_compatible_p instead of comparing TYPE_MAIN_VARIANT for equality.
* omp-low.c (optimize_omp_library_calls): Use types_compatible_p instead of comparing TYPE_MAIN_VARIANT for equality. * tree-vect-patterns.c (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto. * tree-vect-loop.c (vect_is_simple_reduction): Ditto. * gimplify.c (goa_lhs_expr_p): Ditto and use STRIP_USELESS_TYPE_CONVERSION. From-SVN: r150936
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r--gcc/omp-low.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c
index 087f6fc42f4..a7de367e432 100644
--- a/gcc/omp-low.c
+++ b/gcc/omp-low.c
@@ -3316,8 +3316,8 @@ optimize_omp_library_calls (gimple entry_stmt)
continue;
if (TREE_CODE (TREE_TYPE (decl)) != FUNCTION_TYPE
- || TYPE_MAIN_VARIANT (TREE_TYPE (TREE_TYPE (decl)))
- != TYPE_MAIN_VARIANT (TREE_TYPE (TREE_TYPE (built_in))))
+ || !types_compatible_p (TREE_TYPE (TREE_TYPE (decl)),
+ TREE_TYPE (TREE_TYPE (built_in))))
continue;
gimple_call_set_fndecl (call, built_in);