From b4213325af3b16b1295ea1157a95deb4ef5dd61b Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Mon, 29 Jun 1998 09:44:08 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/emit-rtl.c | 2 ++ gcc/rtl.h | 3 ++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 225395a8fec..fdf02373e5a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Mon Jun 29 09:44:24 1998 Mark Mitchell + + * rtl.h: Update comment about special gen_rtx variants. + * emit-rtl.c (gen_rtx): Handle MEMs using gen_rtx_MEM. + Sun Jun 28 20:58:51 1998 Jeffrey A Law (law@cygnus.com) * choose-temp.c (choose_temp_base): Restore original variant of diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 8f1b50188bf..63f0d823afe 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. */ diff --git a/gcc/rtl.h b/gcc/rtl.h index d281cbef2d1..e7bc80472ff 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -1070,7 +1070,8 @@ extern rtx static_chain_incoming_rtx; /* There are some RTL codes that require special attention; the generation functions included above do the raw handling. If you - add to this list, modify special_rtx in gengenrtl.c as well. */ + add to this list, modify special_rtx in gengenrtl.c as well. You + should also modify gen_rtx to use the special function. */ extern rtx gen_rtx_CONST_INT PROTO((enum machine_mode, HOST_WIDE_INT)); extern rtx gen_rtx_REG PROTO((enum machine_mode, int)); -- 2.30.2