diff options
author | Mark Mitchell <mark@markmitchell.com> | 1998-06-29 09:44:08 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1998-06-29 09:44:08 +0000 |
commit | b4213325af3b16b1295ea1157a95deb4ef5dd61b (patch) | |
tree | 1c30692654c730df4cdb09e5ec5da13cb9d0766d /gcc/emit-rtl.c | |
parent | f6b58e7decb2ec1572367cb9be2754d6e09172b4 (diff) | |
download | gcc-b4213325af3b16b1295ea1157a95deb4ef5dd61b.zip gcc-b4213325af3b16b1295ea1157a95deb4ef5dd61b.tar.gz gcc-b4213325af3b16b1295ea1157a95deb4ef5dd61b.tar.bz2 |
rtl.h: Update comment about special gen_rtx variants.
* rtl.h: Update comment about special gen_rtx variants.
* emit-rtl.c (gen_rtx): Handle MEMs using gen_rtx_MEM.
From-SVN: r20789
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r-- | gcc/emit-rtl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 8f1b501..63f0d82 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -365,6 +365,8 @@ gen_rtx VPROTO((enum rtx_code code, enum machine_mode mode, ...)) rt_val = gen_rtx_CONST_INT (mode, va_arg (p, HOST_WIDE_INT)); else if (code == REG) rt_val = gen_rtx_REG (mode, va_arg (p, int)); + else if (code == MEM) + rt_val = gen_rtx_MEM (mode, va_arg (p, rtx)); else { rt_val = rtx_alloc (code); /* Allocate the storage space. */ |