From: Richard Henderson Date: Wed, 6 Jan 1999 18:51:30 +0000 (-0800) Subject: expr.c (expand_builtin): Use value_mode for the return mode. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=44d22bef0af1c9df8d65748a7e5905ff22843f00;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b7b8c7ad832..3c8a8b47203 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 496764244ec..48f726a182a 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; }