From 44d22bef0af1c9df8d65748a7e5905ff22843f00 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 6 Jan 1999 10:51:30 -0800 Subject: [PATCH] expr.c (expand_builtin): Use value_mode for the return mode. * expr.c (expand_builtin) [case BUILT_IN_CONSTANT_P]: Use value_mode for the return mode. From-SVN: r24525 --- gcc/ChangeLog | 5 +++++ gcc/expr.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b7b8c7ad8327..3c8a8b472032 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Wed Jan 6 07:51:05 1999 Richard Henderson + + * expr.c (expand_builtin) [case BUILT_IN_CONSTANT_P]: Use + value_mode for the return mode. + Wed Jan 6 17:55:19 1999 Robert Lipe * configure.in: New flag --with-dwarf2. If set, enables DWARF-2 diff --git a/gcc/expr.c b/gcc/expr.c index 496764244ece..48f726a182ab 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -9031,7 +9031,7 @@ expand_builtin (exp, target, subtarget, mode, ignore) tmp = expand_expr (arg, NULL_RTX, VOIDmode, 0); tmp = gen_rtx_CONSTANT_P_RTX (ptr_mode, tmp); tmp = gen_rtx_CONST (ptr_mode, tmp); - tmp = convert_to_mode (mode, tmp, 0); + tmp = convert_to_mode (value_mode, tmp, 0); return tmp; } -- 2.47.3