rtl.h: Update comment about special gen_rtx variants.
authorMark Mitchell <mark@markmitchell.com>
Mon, 29 Jun 1998 09:44:08 +0000 (09:44 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 29 Jun 1998 09:44:08 +0000 (09:44 +0000)
* 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
gcc/emit-rtl.c
gcc/rtl.h

index 225395a8fecd266cc58f170d07e887df5f933661..fdf02373e5a17775006c26f984a4543ca749f791 100644 (file)
@@ -1,3 +1,8 @@
+Mon Jun 29 09:44:24 1998  Mark Mitchell  <mark@markmitchell.com>
+
+       * 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
index 8f1b50188bf8d06c53e27e437efcf08089f28f30..63f0d823afe52921d59f6d0174502be15c3aa8bf 100644 (file)
@@ -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.  */
index d281cbef2d1ccf97ffe0129fab3ad73fd0fba3f1..e7bc80472ff186b22b301d91fe23d24415ca80f7 100644 (file)
--- 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));