Commit b4213325 by Mark Mitchell Committed by Mark Mitchell

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
parent f6b58e7d
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
......
......@@ -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. */
......
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment