* bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 31 Jan 2004 08:02:55 +0000 (08:02 +0000)
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 31 Jan 2004 08:02:55 +0000 (08:02 +0000)
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77025 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/bt-load.c
gcc/calls.c
gcc/config/i386/cygming.h
gcc/config/i386/i386.c
gcc/config/i386/winnt.c
gcc/emit-rtl.c
gcc/function.c
gcc/reload1.c

index 6fcea98..5c3b446 100644 (file)
@@ -1,3 +1,14 @@
+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.
+
 2004-01-30  Dara Hazeghi  <dhazeghi@yahoo.com>
 
        PR bootstrap/9249
index 9b8f598..f49cec8 100644 (file)
@@ -1155,7 +1155,7 @@ move_btr_def (basic_block new_def_bb, int btr, btr_def def, bitmap live_range,
   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 @@ move_btr_def (basic_block new_def_bb, int btr, btr_def def, bitmap live_range,
          || 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 b4d66f9..7960bbc 100644 (file)
@@ -3549,7 +3549,7 @@ expand_call (tree exp, rtx target, int ignore)
   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 4652802..00628f0 100644 (file)
@@ -315,7 +315,7 @@ extern void i386_pe_unique_section (TREE, int);
 #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 9e6f9b3..02105a8 100644 (file)
@@ -12766,7 +12766,7 @@ x86_initialize_trampoline (rtx tramp, rtx fnaddr, rtx cxt)
     }
 
 #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 5620158..cf7b61e 100644 (file)
@@ -345,7 +345,7 @@ i386_pe_mark_dllexport (tree decl)
   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,9 +393,9 @@ i386_pe_mark_dllimport (tree decl)
      identical.  */
   idp = get_identifier (newname);
 
-  newrtl = gen_rtx (MEM, Pmode,
-                   gen_rtx (SYMBOL_REF, Pmode,
-                            IDENTIFIER_POINTER (idp)));
+  newrtl = gen_rtx_MEM (Pmode,
+                       gen_rtx_SYMBOL_REF (Pmode,
+                                           IDENTIFIER_POINTER (idp)));
   XEXP (DECL_RTL (decl), 0) = newrtl;
 
   /* Can't treat a pointer to this as a constant address */
@@ -492,11 +492,11 @@ i386_pe_encode_section_info (tree decl, rtx rtl, int first)
       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 @@ i386_pe_encode_section_info (tree decl, rtx rtl, int first)
 
       /* 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 "
index dec4946..c720b65 100644 (file)
@@ -660,13 +660,13 @@ gen_lowpart_SUBREG (enum machine_mode mode, rtx reg)
 **
 **             ...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 5af0a90..11edd8b 100644 (file)
@@ -3241,9 +3241,9 @@ purge_addressof_1 (rtx *loc, rtx insn, int force, int store, int may_postpone,
                    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 d53b27b..32341d1 100644 (file)
@@ -3478,7 +3478,7 @@ init_elim_table (void)
 
   /* 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 < &reg_eliminate[NUM_ELIMINABLE_REGS]; ep++)
     {