This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 31 Jan 2004 03:03:41 -0500 (EST)
- Subject: [patch] Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
Hi,
Bootstrapped on i686-pc-linux-gnu. Committed as obvious.
Kazu Hirata
2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
* bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
* calls.c: Likewise.
* emit-rtl.c: Likewise.
* function.c: Likewise.
* reload1.c: Likewise.
* config/i386/cygming.h: Likewise.
* config/i386/i386.c: Likewise.
* config/i386/winnt.c: Likewise.
Index: bt-load.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/bt-load.c,v
retrieving revision 2.13
diff -u -r2.13 bt-load.c
--- bt-load.c 27 Jan 2004 12:49:30 -0000 2.13
+++ bt-load.c 31 Jan 2004 07:45:30 -0000
@@ -1155,7 +1155,7 @@
set = single_set (old_insn);
src = SET_SRC (set);
btr_mode = GET_MODE (SET_DEST (set));
- btr_rtx = gen_rtx (REG, btr_mode, btr);
+ btr_rtx = gen_rtx_REG (btr_mode, btr);
new_insn = gen_move_insn (btr_rtx, src);
@@ -1184,7 +1184,7 @@
|| GET_MODE (user->use) == VOIDmode)
replacement_rtx = btr_rtx;
else
- replacement_rtx = gen_rtx (REG, GET_MODE (user->use), btr);
+ replacement_rtx = gen_rtx_REG (GET_MODE (user->use), btr);
replace_rtx (user->insn, user->use, replacement_rtx);
user->use = replacement_rtx;
}
Index: calls.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/calls.c,v
retrieving revision 1.316
diff -u -r1.316 calls.c
--- calls.c 21 Jan 2004 20:39:52 -0000 1.316
+++ calls.c 31 Jan 2004 07:45:39 -0000
@@ -3549,7 +3549,7 @@
if (flags & ECF_SP_DEPRESSED)
{
clear_pending_stack_adjust ();
- emit_insn (gen_rtx (CLOBBER, VOIDmode, stack_pointer_rtx));
+ emit_insn (gen_rtx_CLOBBER (VOIDmode, stack_pointer_rtx));
emit_move_insn (virtual_stack_dynamic_rtx, stack_pointer_rtx);
save_stack_pointer ();
}
Index: emit-rtl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/emit-rtl.c,v
retrieving revision 1.371
diff -u -r1.371 emit-rtl.c
--- emit-rtl.c 29 Jan 2004 18:52:28 -0000 1.371
+++ emit-rtl.c 31 Jan 2004 07:45:48 -0000
@@ -660,13 +660,13 @@
**
** ...would be generated by the following C code:
**
-** gen_rtx (PLUS, QImode,
-** gen_rtx (MEM, QImode,
-** gen_rtx (REG, SImode, 1)),
-** gen_rtx (MEM, QImode,
-** gen_rtx (PLUS, SImode,
-** gen_rtx (REG, SImode, 2),
-** gen_rtx (REG, SImode, 3)))),
+** gen_rtx_PLUS (QImode,
+** gen_rtx_MEM (QImode,
+** gen_rtx_REG (SImode, 1)),
+** gen_rtx_MEM (QImode,
+** gen_rtx_PLUS (SImode,
+** gen_rtx_REG (SImode, 2),
+** gen_rtx_REG (SImode, 3)))),
*/
/*VARARGS2*/
Index: function.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/function.c,v
retrieving revision 1.487
diff -u -r1.487 function.c
--- function.c 26 Jan 2004 17:43:46 -0000 1.487
+++ function.c 31 Jan 2004 07:46:03 -0000
@@ -3241,9 +3241,9 @@
return true;
}
purge_addressof_replacements
- = gen_rtx (EXPR_LIST, VOIDmode, XEXP (x, 0),
- gen_rtx_EXPR_LIST (VOIDmode, sub,
- purge_addressof_replacements));
+ = gen_rtx_EXPR_LIST (VOIDmode, XEXP (x, 0),
+ gen_rtx_EXPR_LIST (VOIDmode, sub,
+ purge_addressof_replacements));
return true;
}
goto restart;
Index: reload1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/reload1.c,v
retrieving revision 1.421
diff -u -r1.421 reload1.c
--- reload1.c 30 Jan 2004 23:10:36 -0000 1.421
+++ reload1.c 31 Jan 2004 07:46:19 -0000
@@ -3478,7 +3478,7 @@
/* Count the number of eliminable registers and build the FROM and TO
REG rtx's. Note that code in gen_rtx will cause, e.g.,
- gen_rtx (REG, Pmode, STACK_POINTER_REGNUM) to equal stack_pointer_rtx.
+ gen_rtx_REG (Pmode, STACK_POINTER_REGNUM) to equal stack_pointer_rtx.
We depend on this. */
for (ep = reg_eliminate; ep < ®_eliminate[NUM_ELIMINABLE_REGS]; ep++)
{
Index: config/i386/cygming.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/cygming.h,v
retrieving revision 1.12
diff -u -r1.12 cygming.h
--- config/i386/cygming.h 31 Jan 2004 02:06:57 -0000 1.12
+++ config/i386/cygming.h 31 Jan 2004 07:48:24 -0000
@@ -315,7 +315,7 @@
#define PROFILE_HOOK(LABEL) \
if (MAIN_NAME_P (DECL_NAME (current_function_decl))) \
{ \
- emit_call_insn (gen_rtx (CALL, VOIDmode, \
+ emit_call_insn (gen_rtx_CALL (VOIDmode, \
gen_rtx_MEM (FUNCTION_MODE, \
gen_rtx_SYMBOL_REF (Pmode, "_monstartup")), \
const0_rtx)); \
Index: config/i386/i386.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.c,v
retrieving revision 1.640
diff -u -r1.640 i386.c
--- config/i386/i386.c 29 Jan 2004 08:05:44 -0000 1.640
+++ config/i386/i386.c 31 Jan 2004 07:48:56 -0000
@@ -12766,7 +12766,7 @@
}
#ifdef TRANSFER_FROM_TRAMPOLINE
- emit_library_call (gen_rtx (SYMBOL_REF, Pmode, "__enable_execute_stack"),
+ emit_library_call (gen_rtx_SYMBOL_REF (Pmode, "__enable_execute_stack"),
LCT_NORMAL, VOIDmode, 1, tramp, Pmode);
#endif
}
Index: config/i386/winnt.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/winnt.c,v
retrieving revision 1.61
diff -u -r1.61 winnt.c
--- config/i386/winnt.c 31 Jan 2004 02:06:57 -0000 1.61
+++ config/i386/winnt.c 31 Jan 2004 07:48:58 -0000
@@ -345,7 +345,7 @@
idp = get_identifier (newname);
XEXP (DECL_RTL (decl), 0) =
- gen_rtx (SYMBOL_REF, Pmode, IDENTIFIER_POINTER (idp));
+ gen_rtx_SYMBOL_REF (Pmode, IDENTIFIER_POINTER (idp));
}
/* Mark a DECL as being dllimport'd. */
@@ -393,8 +393,8 @@
identical. */
idp = get_identifier (newname);
- newrtl = gen_rtx (MEM, Pmode,
- gen_rtx (SYMBOL_REF, Pmode,
+ newrtl = gen_rtx_MEM (Pmode,
+ gen_rtx_SYMBOL_REF (Pmode,
IDENTIFIER_POINTER (idp)));
XEXP (DECL_RTL (decl), 0) = newrtl;
@@ -492,11 +492,11 @@
if (lookup_attribute ("stdcall",
TYPE_ATTRIBUTES (TREE_TYPE (decl))))
XEXP (DECL_RTL (decl), 0) =
- gen_rtx (SYMBOL_REF, Pmode, gen_stdcall_suffix (decl));
+ gen_rtx_SYMBOL_REF (Pmode, gen_stdcall_suffix (decl));
else if (lookup_attribute ("fastcall",
TYPE_ATTRIBUTES (TREE_TYPE (decl))))
XEXP (DECL_RTL (decl), 0) =
- gen_rtx (SYMBOL_REF, Pmode, gen_fastcall_suffix (decl));
+ gen_rtx_SYMBOL_REF (Pmode, gen_fastcall_suffix (decl));
}
/* Mark the decl so we can tell from the rtl whether the object is
@@ -523,7 +523,7 @@
/* Remove DLL_IMPORT_PREFIX. */
tree idp = get_identifier (oldname + strlen (DLL_IMPORT_PREFIX));
- rtx newrtl = gen_rtx (SYMBOL_REF, Pmode, IDENTIFIER_POINTER (idp));
+ rtx newrtl = gen_rtx_SYMBOL_REF (Pmode, IDENTIFIER_POINTER (idp));
if (DECL_INITIAL (decl) || !DECL_EXTERNAL (decl))
warning ("%J'%D' defined locally after being "