From 5c944c6cb8a54f29a394493e48429345f2f8f08d Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 8 Jan 2014 09:06:27 +0000 Subject: re PR middle-end/59630 (ICE converting the return type of a builtin function) 2014-01-08 Richard Biener PR middle-end/59630 * gimple.h (is_gimple_builtin_call): Remove. (gimple_builtin_call_types_compatible_p): New. (gimple_call_builtin_p): New overload. * gimple.c (is_gimple_builtin_call): Remove. (validate_call): Rename to ... (gimple_builtin_call_types_compatible_p): ... this and export. Also check return types. (validate_type): New static function. (gimple_call_builtin_p): New overload and adjust. * gimple-fold.c (gimple_fold_builtin): Fold the return value. (gimple_fold_call): Likewise. Use gimple_call_builtin_p. (gimple_fold_stmt_to_constant_1): Likewise. * tsan.c (instrument_gimple): Use gimple_call_builtin_p. * gcc.dg/pr59630.c: New testcase. From-SVN: r206421 --- gcc/tsan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/tsan.c') diff --git a/gcc/tsan.c b/gcc/tsan.c index 2c053bd..2e32cd2 100644 --- a/gcc/tsan.c +++ b/gcc/tsan.c @@ -609,7 +609,7 @@ instrument_gimple (gimple_stmt_iterator *gsi) && (gimple_call_fndecl (stmt) != builtin_decl_implicit (BUILT_IN_TSAN_INIT))) { - if (is_gimple_builtin_call (stmt)) + if (gimple_call_builtin_p (stmt, BUILT_IN_NORMAL)) instrument_builtin_call (gsi); return true; } -- cgit v1.1