expr.c (init_expr_once): Don't use start/end_sequence.
authorRichard Henderson <rth@redhat.com>
Fri, 17 May 2002 22:46:22 +0000 (15:46 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Fri, 17 May 2002 22:46:22 +0000 (15:46 -0700)
        * expr.c (init_expr_once): Don't use start/end_sequence.
        Use rtx_alloc instead of emit_insn.
        * toplev.c (lang_dependent_init): Run init_expr_once here ...
        (lang_independent_init): ... not here.

From-SVN: r53572

gcc/ChangeLog
gcc/expr.c
gcc/toplev.c

index a104bad8afc649efed8c4afefe06a4405dd1631d..58d851bd092f1c67939f7367244e614916b53312 100644 (file)
@@ -1,3 +1,10 @@
+2002-05-17  Richard Henderson  <rth@redhat.com>
+
+       * expr.c (init_expr_once): Don't use start/end_sequence.
+       Use rtx_alloc instead of emit_insn.
+       * toplev.c (lang_dependent_init): Run init_expr_once here ...
+       (lang_independent_init): ... not here.
+
 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
 
        * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
index 0b741c65d03669de920ee2e2f6dec704857709c5..bc0b225704bcac5a239238264e27f9deaab408bf 100644 (file)
@@ -214,16 +214,15 @@ init_expr_once ()
   int num_clobbers;
   rtx mem, mem1;
 
-  start_sequence ();
-
   /* Try indexing by frame ptr and try by stack ptr.
      It is known that on the Convex the stack ptr isn't a valid index.
      With luck, one or the other is valid on any machine.  */
   mem = gen_rtx_MEM (VOIDmode, stack_pointer_rtx);
   mem1 = gen_rtx_MEM (VOIDmode, frame_pointer_rtx);
 
-  insn = emit_insn (gen_rtx_SET (0, NULL_RTX, NULL_RTX));
-  pat = PATTERN (insn);
+  insn = rtx_alloc (INSN);
+  pat = gen_rtx_SET (0, NULL_RTX, NULL_RTX);
+  PATTERN (insn) = pat;
 
   for (mode = VOIDmode; (int) mode < NUM_MACHINE_MODES;
        mode = (enum machine_mode) ((int) mode + 1))
@@ -291,8 +290,6 @@ init_expr_once ()
            float_extend_from_mem[mode][srcmode] = true;
        }
     }
-
-  end_sequence ();
 }
 
 /* This is run at the start of compiling a function.  */
index 9fb8813191a81e3d1c63be1c13667053103d26c8..83cdc5799b15520e306a6a8c1ca448f67072ced3 100644 (file)
@@ -5020,7 +5020,6 @@ lang_independent_init ()
      provide a dummy function context for them.  */
   init_dummy_function_start ();
   init_expmed ();
-  init_expr_once ();
   if (flag_caller_saves)
     init_caller_save ();
   expand_dummy_function_end ();
@@ -5051,6 +5050,7 @@ lang_dependent_init (name)
      front end is initialized.  */
   init_eh ();
   init_optabs ();
+  init_expr_once ();
 
   /* Put an entry on the input file stack for the main input file.  */
   push_srcloc (input_filename, 0);