aboutsummaryrefslogtreecommitdiff
path: root/gcc/real.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2005-08-01 21:16:31 +0000
committerRichard Henderson <rth@gcc.gnu.org>2005-08-01 14:16:31 -0700
commit9e254451d2c54ff1fc1c9f1de87110566808af35 (patch)
tree34ac4d017689743b8d8c8016d3db1ede47484578 /gcc/real.h
parent5e9d09007dfa95afa0b3cf979a8b36be46174850 (diff)
downloadgcc-9e254451d2c54ff1fc1c9f1de87110566808af35.zip
gcc-9e254451d2c54ff1fc1c9f1de87110566808af35.tar.gz
gcc-9e254451d2c54ff1fc1c9f1de87110566808af35.tar.bz2
Makefile.in (RTL_BASE_H): Add real.h.
* Makefile.in (RTL_BASE_H): Add real.h. * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy instead of memcpy. * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv directly. * rtl.c (rtl_check_failed_code_mode): New. * rtl.h (struct rtx_def): Add u.rv. (XCMWINT, XCNMPRV): New. (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT. (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify. Co-Authored-By: Richard Henderson <rth@redhat.com> From-SVN: r102643
Diffstat (limited to 'gcc/real.h')
-rw-r--r--gcc/real.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/real.h b/gcc/real.h
index 9538093..23605639 100644
--- a/gcc/real.h
+++ b/gcc/real.h
@@ -364,7 +364,7 @@ REAL_VALUE_TYPE real_value_from_int_cst (tree, tree);
/* Given a CONST_DOUBLE in FROM, store into TO the value it represents. */
#define REAL_VALUE_FROM_CONST_DOUBLE(to, from) \
- memcpy (&(to), &CONST_DOUBLE_LOW ((from)), sizeof (REAL_VALUE_TYPE))
+ ((to) = *CONST_DOUBLE_REAL_VALUE (from))
/* Return a CONST_DOUBLE with value R and mode M. */
#define CONST_DOUBLE_FROM_REAL_VALUE(r, m) \