+2001-10-19 Catherine Moore <clm@redhat.com>
+
+ * config/stormy16/stormy16.h (ASM_COMMENT_START): Define.
+
+ * config/stormy16/stormy16.c (stormy16_split_move): Make
+ sure that REG_INC notes are present for auto_inc operands.
+
2001-10-19 Andreas Jaeger <aj@suse.de>
* configure: Regenerated.
int src_volatile = 0;
int dest_volatile = 0;
rtx mem_operand;
+ rtx auto_inc_reg_rtx = NULL_RTX;
/* Check initial conditions. */
if (! reload_completed
{
mem_operand = XEXP (dest, 0);
dest_modifies = side_effects_p (mem_operand);
+ if (auto_inc_p (mem_operand))
+ auto_inc_reg_rtx = XEXP (mem_operand, 0);
dest_volatile = MEM_VOLATILE_P (dest);
if (dest_volatile)
{
{
mem_operand = XEXP (src, 0);
src_modifies = side_effects_p (mem_operand);
+ if (auto_inc_p (mem_operand))
+ auto_inc_reg_rtx = XEXP (mem_operand, 0);
src_volatile = MEM_VOLATILE_P (src);
if (src_volatile)
{
end = direction < 0 ? -1 : num_words;
for (i = direction < 0 ? num_words - 1 : 0; i != end; i += direction)
{
- rtx w_src, w_dest;
+ rtx w_src, w_dest, insn;
+
if (src_modifies)
w_src = gen_rtx_MEM (word_mode, mem_operand);
else
|| GET_CODE (w_dest) == SUBREG)
abort ();
- emit_insn (gen_rtx_SET (VOIDmode, w_dest, w_src));
+ insn = emit_insn (gen_rtx_SET (VOIDmode, w_dest, w_src));
+ if (auto_inc_reg_rtx)
+ REG_NOTES (insn) = alloc_EXPR_LIST (REG_INC,
+ auto_inc_reg_rtx,
+ REG_NOTES (insn));
}
}
Defined in svr4.h. */
#undef LIB_SPEC
+#if 0
+#define LIB_SPEC "-( -lc %{msim:-lsim}%{!msim:-leva_app -lnosys} -)"
+#endif
#define LIB_SPEC "-( -lc %{msim:-lsim} -)"
/* Another C string constant that tells the GNU CC driver program how and when
/* A C string constant describing how to begin a comment in the target
assembler language. The compiler assumes that the comment will end at the
end of the line. */
-/* #define ASM_COMMENT_START */
+#define ASM_COMMENT_START ";"
/* A C string constant for text to be output before each `asm' statement or
group of consecutive ones. Normally this is `"#APP"', which is a comment