rtl.h (emit_note): Remove FILE parameter.
authorNathan Sidwell <nathan@codesourcery.com>
Fri, 27 Jun 2003 09:49:44 +0000 (09:49 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 27 Jun 2003 09:49:44 +0000 (09:49 +0000)
* rtl.h (emit_note): Remove FILE parameter.
* emit-rtl.c (emit_line_note): Adjust emit_note call.
(emit_note): Remove FILE parameter. Adjust.
* builtins.c (expand_builtin_expect): Adjust emit_note call.
* c-semantics.c (genrtl_scope_stmt): Likewise.
(expand_stmt): Likewise.
* cfglayout.c (reemit_insn_block_notes): Likewise.
(duplicate_insn_chain): Likewise.
* except.c (expand_eh_region_start, expand_eh_region_end,
sjlj_emit_function_enter): Likewise.
* explow.c (probe_stack_range): Likewise.
* expr.c (emit_block_move_via_loop): Likewise.
* function.c (init_function_start, expand_function_start,
expand_function_end, thread_prologue_and_epilogue_insns): Likewise.
* integrate.c (expand_inline_function, copy_insn_list): Likewise.
* reg-stack.c (compensate_edge): Likewise.
* reload1.c (reload): Likewise.
* rtlanal.c (hoist_insn_to_edge): Likewise.
* stmt.c (expand_fixup, expand_start_loop, expand_start_null_loop,
expand_loop_continue_here, expand_end_loop, expand_continue_loop,
expand_exit_loop_top_cond, expand_value_return,
expand_start_bindings_and_block, expand_end_bindings,
expand_decl_cleanup, expand_start_case): Likewise.
* unroll.c (copy_loop_body
* config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise.
* config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
* config/rs6000/rs6000.c (rs6000_emit_eh_toc_restore,
rs6000_emit_allocate_stack, rs6000_output_function_prologue,
rs6000_output_function_epilogue, rs6000_output_mi_thunk): Likewise.
* config/sh/sh.c (sh_output_mi_thunk): Likewise.
* config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.

* ada/misc.c (record_code_position): Likewise.

From-SVN: r68561

23 files changed:
gcc/ChangeLog
gcc/ada/ChangeLog
gcc/ada/misc.c
gcc/builtins.c
gcc/c-semantics.c
gcc/cfglayout.c
gcc/config/alpha/alpha.c
gcc/config/ia64/ia64.c
gcc/config/rs6000/rs6000.c
gcc/config/sh/sh.c
gcc/config/sparc/sparc.c
gcc/emit-rtl.c
gcc/except.c
gcc/explow.c
gcc/expr.c
gcc/function.c
gcc/integrate.c
gcc/reg-stack.c
gcc/reload1.c
gcc/rtl.h
gcc/rtlanal.c
gcc/stmt.c
gcc/unroll.c

index 966d8b511e9d932b1b04bca4bfdacb29bf571bb2..e1eeb8c6d8064a25bc51aa62a4d96a107d322c96 100644 (file)
@@ -1,3 +1,37 @@
+2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * rtl.h (emit_note): Remove FILE parameter.
+       * emit-rtl.c (emit_line_note): Adjust emit_note call.
+       (emit_note): Remove FILE parameter. Adjust.
+       * builtins.c (expand_builtin_expect): Adjust emit_note call.
+       * c-semantics.c (genrtl_scope_stmt): Likewise.
+       (expand_stmt): Likewise.
+       * cfglayout.c (reemit_insn_block_notes): Likewise.
+       (duplicate_insn_chain): Likewise.
+       * except.c (expand_eh_region_start, expand_eh_region_end,
+       sjlj_emit_function_enter): Likewise.
+       * explow.c (probe_stack_range): Likewise.
+       * expr.c (emit_block_move_via_loop): Likewise.
+       * function.c (init_function_start, expand_function_start,
+       expand_function_end, thread_prologue_and_epilogue_insns): Likewise.
+       * integrate.c (expand_inline_function, copy_insn_list): Likewise.
+       * reg-stack.c (compensate_edge): Likewise.
+       * reload1.c (reload): Likewise.
+       * rtlanal.c (hoist_insn_to_edge): Likewise.
+       * stmt.c (expand_fixup, expand_start_loop, expand_start_null_loop,
+       expand_loop_continue_here, expand_end_loop, expand_continue_loop,
+       expand_exit_loop_top_cond, expand_value_return,
+       expand_start_bindings_and_block, expand_end_bindings,
+       expand_decl_cleanup, expand_start_case): Likewise.
+       * unroll.c (copy_loop_body
+       * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise.
+       * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
+       * config/rs6000/rs6000.c (rs6000_emit_eh_toc_restore,
+       rs6000_emit_allocate_stack, rs6000_output_function_prologue,
+       rs6000_output_function_epilogue, rs6000_output_mi_thunk): Likewise.
+       * config/sh/sh.c (sh_output_mi_thunk): Likewise.
+       * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
+
 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
 
        * c-tree.h (grokfield): Remove unused filename and line parameters.
index 53ca9568be0b9d34ee5dad2c510a09057f6cbcde..8160333c66f3d258a9ae17653352803c967ac210 100644 (file)
@@ -1,3 +1,7 @@
+2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * misc.c (record_code_position): Adjust emit_note call.
+
 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
 
        * misc.c (gnat_handle_option): Don't check for missing arguments.
index 4884fe9c2685c9b8f792543e30d32f2b2e82eca8..e0ee975215d3762031583a6970a83d69feb42377 100644 (file)
@@ -719,7 +719,7 @@ record_code_position (gnat_node)
        addressable needs some fixups and also for above reason.  */
     save_gnu_tree (gnat_node,
                   build (RTL_EXPR, void_type_node, NULL_TREE,
-                         (tree) emit_note (0, NOTE_INSN_DELETED)),
+                         (tree) emit_note (NOTE_INSN_DELETED)),
                   1);
 }
 
index 44ecbdedcf2938ac3fcd24eb59b934f3fa0b5f64..20ccda3dfe6c8f4484bdb2790353ab0dc2c3fcb6 100644 (file)
@@ -4301,7 +4301,7 @@ expand_builtin_expect (tree arglist, rtx target)
 
       rtx_c = expand_expr (c, NULL_RTX, GET_MODE (target), EXPAND_NORMAL);
 
-      note = emit_note (NULL, NOTE_INSN_EXPECTED_VALUE);
+      note = emit_note (NOTE_INSN_EXPECTED_VALUE);
       NOTE_EXPECTED_VALUE (note) = gen_rtx_EQ (VOIDmode, target, rtx_c);
     }
 
index 3d747e62d7f0e35c910f527603f88876ff31ebeb..e75caa70101b3f7be0d533d6778d1921203e730a 100644 (file)
@@ -629,10 +629,8 @@ genrtl_scope_stmt (tree t)
     }
   else if (!SCOPE_NULLIFIED_P (t))
     {
-      rtx note = emit_note (NULL,
-                           (SCOPE_BEGIN_P (t)
-                            ? NOTE_INSN_BLOCK_BEG
-                            : NOTE_INSN_BLOCK_END));
+      rtx note = emit_note (SCOPE_BEGIN_P (t)
+                           ? NOTE_INSN_BLOCK_BEG : NOTE_INSN_BLOCK_END);
       NOTE_BLOCK (note) = block;
     }
 
@@ -858,7 +856,7 @@ expand_stmt (tree t)
              && TREE_CODE (GOTO_DESTINATION (t)) == LABEL_DECL
              && flag_guess_branch_prob)
            {
-             rtx note = emit_note (NULL, NOTE_INSN_PREDICTION);
+             rtx note = emit_note (NOTE_INSN_PREDICTION);
 
              NOTE_PREDICTION (note) = NOTE_PREDICT (PRED_GOTO, NOT_TAKEN);
            }
index eea7b94226557480123862178d4b0523d4cb42b3..736d8887ec5a4a0cc694f7b3baa4d00487734d47 100644 (file)
@@ -513,7 +513,7 @@ reemit_insn_block_notes (void)
     }
 
   /* change_scope emits before the insn, not after.  */
-  note = emit_note (NULL, NOTE_INSN_DELETED);
+  note = emit_note (NOTE_INSN_DELETED);
   change_scope (note, cur_block, DECL_INITIAL (cfun->decl));
   delete_insn (note);
 
@@ -943,7 +943,7 @@ duplicate_insn_chain (rtx from, rtx to)
 
   /* Avoid updating of boundaries of previous basic block.  The
      note will get removed from insn stream in fixup.  */
-  last = emit_note (NULL, NOTE_INSN_DELETED);
+  last = emit_note (NOTE_INSN_DELETED);
 
   /* Create copy at the end of INSN chain.  The chain will
      be reordered later.  */
index 5e16e8ee93bd8b5aeaec0083e145bcb7184ed1e9..1d1be31db95cd832183c6a2332d90e5235838e72 100644 (file)
@@ -7658,7 +7658,7 @@ alpha_output_mi_thunk_osf (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED,
 
   /* We always require a valid GP.  */
   emit_insn (gen_prologue_ldgp ());
-  emit_note (NULL, NOTE_INSN_PROLOGUE_END);
+  emit_note (NOTE_INSN_PROLOGUE_END);
 
   /* Find the "this" pointer.  If the function returns a structure,
      the structure return pointer is in $16.  */
index 3803033a4b85b9c6163236b30acd29c84f54b7aa..e610f62bb8f59f00c0cee14ad293941116eb8103 100644 (file)
@@ -8491,7 +8491,7 @@ ia64_output_mi_thunk (file, thunk, delta, vcall_offset, function)
     reg_names[IN_REG (0)] = ia64_reg_numbers[0];
 
   /* Mark the end of the (empty) prologue.  */
-  emit_note (NULL, NOTE_INSN_PROLOGUE_END);
+  emit_note (NOTE_INSN_PROLOGUE_END);
 
   this = gen_rtx_REG (Pmode, IN_REG (0));
 
index 2e1ceef9129428be8d1bc140e7aadfb1fd737404..a3eb255a2319093f8b903b9a5f2a9dae7ee95fd9 100644 (file)
@@ -10706,7 +10706,7 @@ rs6000_emit_eh_toc_restore (stacksize)
     abort ();
   emit_move_insn (opcode, insn_after_throw);
   
-  emit_note (NULL, NOTE_INSN_LOOP_BEG);
+  emit_note (NOTE_INSN_LOOP_BEG);
   emit_label (loop_start);
   
   do_compare_rtx_and_jump (opcode, tocompare, NE, 1,
@@ -10733,9 +10733,9 @@ rs6000_emit_eh_toc_restore (stacksize)
   emit_move_insn (opcode_addr, mem);
   emit_move_insn (opcode, gen_rtx_MEM (SImode, opcode_addr));
 
-  emit_note (NULL, NOTE_INSN_LOOP_CONT);
+  emit_note (NOTE_INSN_LOOP_CONT);
   emit_jump (loop_start);
-  emit_note (NULL, NOTE_INSN_LOOP_END);
+  emit_note (NOTE_INSN_LOOP_END);
   emit_label (loop_exit);
 }
 \f
@@ -10809,7 +10809,7 @@ rs6000_emit_allocate_stack (size, copy_r12)
        {
          /* Need a note here so that try_split doesn't get confused.  */
          if (get_last_insn() == NULL_RTX)
-           emit_note (0, NOTE_INSN_DELETED);
+           emit_note (NOTE_INSN_DELETED);
          insn = emit_move_insn (tmp_reg, todec);
          try_split (PATTERN (insn), insn, 0);
          todec = tmp_reg;
@@ -11536,9 +11536,9 @@ rs6000_output_function_prologue (file, size)
 
       /* A NOTE_INSN_DELETED is supposed to be at the start and end of
         the "toplevel" insn chain.  */
-      emit_note (0, NOTE_INSN_DELETED);
+      emit_note (NOTE_INSN_DELETED);
       rs6000_emit_prologue ();
-      emit_note (0, NOTE_INSN_DELETED);
+      emit_note (NOTE_INSN_DELETED);
 
       /* Expand INSN_ADDRESSES so final() doesn't crash. */
       {
@@ -11957,9 +11957,9 @@ rs6000_output_function_epilogue (file, size)
 
          /* A NOTE_INSN_DELETED is supposed to be at the start
             and end of the "toplevel" insn chain.  */
-         emit_note (0, NOTE_INSN_DELETED);
+         emit_note (NOTE_INSN_DELETED);
          rs6000_emit_epilogue (FALSE);
-         emit_note (0, NOTE_INSN_DELETED);
+         emit_note (NOTE_INSN_DELETED);
 
          /* Expand INSN_ADDRESSES so final() doesn't crash. */
          {
@@ -12254,7 +12254,7 @@ rs6000_output_mi_thunk (file, thunk_fndecl, delta, vcall_offset, function)
   no_new_pseudos = 1;
 
   /* Mark the end of the (empty) prologue.  */
-  emit_note (NULL, NOTE_INSN_PROLOGUE_END);
+  emit_note (NOTE_INSN_PROLOGUE_END);
 
   /* Find the "this" pointer.  If the function returns a structure,
      the structure return pointer is in r3.  */
index dcd97d7019da773001f9ce389626a82c75fd35a1..05c6c0ac8896b966feaa85e66442c073d546f19b 100644 (file)
@@ -8547,7 +8547,7 @@ sh_output_mi_thunk (file, thunk_fndecl, delta, vcall_offset, function)
   no_new_pseudos = 1;
   current_function_uses_only_leaf_regs = 1;
 
-  emit_note (NULL, NOTE_INSN_PROLOGUE_END);
+  emit_note (NOTE_INSN_PROLOGUE_END);
 
   /* Find the "this" pointer.  We have such a wide range of ABIs for the
      SH that it's best to do this completely machine independently.
index fb41af1ff3960e29c33c2c41763810e51d86ba34..148bcee53f42571b8ec8af417c5cb3cf82b61eb6 100644 (file)
@@ -8593,7 +8593,7 @@ sparc_output_mi_thunk (file, thunk_fndecl, delta, vcall_offset, function)
   no_new_pseudos = 1;
   current_function_uses_only_leaf_regs = 1;
 
-  emit_note (NULL, NOTE_INSN_PROLOGUE_END);
+  emit_note (NOTE_INSN_PROLOGUE_END);
 
   /* Find the "this" pointer.  Normally in %o0, but in ARCH64 if the function
      returns a structure, the structure return pointer is there instead.  */
index 908b12db8ca1ecdf84898fa11a88673a8d4e5a45..d54d18852582e25cf13207c91da8a038aa6bbc33 100644 (file)
@@ -4899,6 +4899,8 @@ emit_line_note (file, line)
      const char *file;
      int line;
 {
+  rtx note;
+  
   if (line < 0)
     abort ();
   
@@ -4916,25 +4918,25 @@ emit_line_note (file, line)
       return NULL_RTX;
     }
 
-  return emit_note (file, line);
+  note = emit_note (line);
+  NOTE_SOURCE_FILE (note) = file;
+  
+  return note;
 }
 
-/* Make an insn of code NOTE
-   with data-fields specified by FILE and LINE
-   and add it to the end of the doubly-linked list.
-   If it is a line-number NOTE, omit it if it matches the previous one.  */
+/* Make an insn of code NOTE or type NOTE_NO
+   and add it to the end of the doubly-linked list.  */
 
 rtx
-emit_note (file, line)
-     const char *file;
-     int line;
+emit_note (note_no)
+     int note_no;
 {
   rtx note;
 
   note = rtx_alloc (NOTE);
   INSN_UID (note) = cur_insn_uid++;
-  NOTE_SOURCE_FILE (note) = file;
-  NOTE_LINE_NUMBER (note) = line;
+  NOTE_LINE_NUMBER (note) = note_no;
+  NOTE_DATA (note) = 0;
   BLOCK_FOR_INSN (note) = NULL;
   add_insn (note);
   return note;
index 0ea1fc7bf096def6ce5d690d9a64c8d916ca12bf..39e72dfa70df5699ea4b6fa88973424ef0c4ce49 100644 (file)
@@ -510,7 +510,7 @@ expand_eh_region_start ()
 
   /* Create a note marking the start of this region.  */
   new_region->region_number = ++cfun->eh->last_region_number;
-  note = emit_note (NULL, NOTE_INSN_EH_REGION_BEG);
+  note = emit_note (NOTE_INSN_EH_REGION_BEG);
   NOTE_EH_HANDLER (note) = new_region->region_number;
 }
 
@@ -523,7 +523,7 @@ expand_eh_region_end ()
   rtx note;
 
   /* Create a note marking the end of this region.  */
-  note = emit_note (NULL, NOTE_INSN_EH_REGION_END);
+  note = emit_note (NOTE_INSN_EH_REGION_END);
   NOTE_EH_HANDLER (note) = cur_region->region_number;
 
   /* Pop.  */
@@ -2119,7 +2119,7 @@ sjlj_emit_function_enter (dispatch_label)
                                 plus_constant (XEXP (fc, 0),
                                                sjlj_fc_jbuf_ofs), Pmode);
 
-    note = emit_note (NULL, NOTE_INSN_EXPECTED_VALUE);
+    note = emit_note (NOTE_INSN_EXPECTED_VALUE);
     NOTE_EXPECTED_VALUE (note) = gen_rtx_EQ (VOIDmode, x, const0_rtx);
 
     emit_cmp_and_jump_insns (x, const0_rtx, NE, 0,
index cd0a15836a3643bb51fbf95bf98734a0cec3dcd7..883edf8e9f4511d8a090d202fc12d30a5d804127 100644 (file)
@@ -1588,13 +1588,13 @@ probe_stack_range (first, size)
          || REGNO (test_addr) < FIRST_PSEUDO_REGISTER)
        test_addr = force_reg (Pmode, test_addr);
 
-      emit_note (NULL, NOTE_INSN_LOOP_BEG);
+      emit_note (NOTE_INSN_LOOP_BEG);
       emit_jump (test_lab);
 
       emit_label (loop_lab);
       emit_stack_probe (test_addr);
 
-      emit_note (NULL, NOTE_INSN_LOOP_CONT);
+      emit_note (NOTE_INSN_LOOP_CONT);
 
 #ifdef STACK_GROWS_DOWNWARD
 #define CMP_OPCODE GTU
@@ -1613,7 +1613,7 @@ probe_stack_range (first, size)
       emit_cmp_and_jump_insns (test_addr, last_addr, CMP_OPCODE,
                               NULL_RTX, Pmode, 1, loop_lab);
       emit_jump (end_lab);
-      emit_note (NULL, NOTE_INSN_LOOP_END);
+      emit_note (NOTE_INSN_LOOP_END);
       emit_label (end_lab);
 
       emit_stack_probe (last_addr);
index 4b29993b401a4e5cc74ccc8473cb7abe246f11b5..849e778b0cb70d72f5309bbf9fe24066bb846997 100644 (file)
@@ -2146,7 +2146,7 @@ emit_block_move_via_loop (x, y, size, align)
   y_addr = force_operand (XEXP (y, 0), NULL_RTX);
   do_pending_stack_adjust ();
 
-  emit_note (NULL, NOTE_INSN_LOOP_BEG);
+  emit_note (NOTE_INSN_LOOP_BEG);
 
   emit_jump (cmp_label);
   emit_label (top_label);
@@ -2164,13 +2164,13 @@ emit_block_move_via_loop (x, y, size, align)
   if (tmp != iter)
     emit_move_insn (iter, tmp);
 
-  emit_note (NULL, NOTE_INSN_LOOP_CONT);
+  emit_note (NOTE_INSN_LOOP_CONT);
   emit_label (cmp_label);
 
   emit_cmp_and_jump_insns (iter, size, LT, NULL_RTX, iter_mode,
                           true, top_label);
 
-  emit_note (NULL, NOTE_INSN_LOOP_END);
+  emit_note (NOTE_INSN_LOOP_END);
 }
 \f
 /* Copy all or part of a value X into registers starting at REGNO.
index 58467237209bd51eaa2e671d09d33d163f85db51..b2caea9959c7cafad36beb03ed767769e02a1bcc 100644 (file)
@@ -6549,7 +6549,7 @@ init_function_start (subr)
   /* Make sure first insn is a note even if we don't want linenums.
      This makes sure the first insn will never be deleted.
      Also, final expects a note to appear there.  */
-  emit_note (NULL, NOTE_INSN_DELETED);
+  emit_note (NOTE_INSN_DELETED);
 
   /* Set flags used by final.c.  */
   if (aggregate_value_p (DECL_RESULT (subr)))
@@ -6791,10 +6791,10 @@ expand_function_start (subr, parms_have_cleanups)
      The move is supposed to make sdb output more accurate.  */
   /* Indicate the beginning of the function body,
      as opposed to parm setup.  */
-  emit_note (NULL, NOTE_INSN_FUNCTION_BEG);
+  emit_note (NOTE_INSN_FUNCTION_BEG);
 
   if (GET_CODE (get_last_insn ()) != NOTE)
-    emit_note (NULL, NOTE_INSN_DELETED);
+    emit_note (NOTE_INSN_DELETED);
   parm_birth_insn = get_last_insn ();
 
   context_display = 0;
@@ -6868,7 +6868,7 @@ expand_function_start (subr, parms_have_cleanups)
   /* After the display initializations is where the tail-recursion label
      should go, if we end up needing one.   Ensure we have a NOTE here
      since some things (like trampolines) get placed before this.  */
-  tail_recursion_reentry = emit_note (NULL, NOTE_INSN_DELETED);
+  tail_recursion_reentry = emit_note (NOTE_INSN_DELETED);
 
   /* Evaluate now the sizes of any types declared among the arguments.  */
   expand_pending_sizes (nreverse (get_pending_sizes ()));
@@ -7080,7 +7080,7 @@ expand_function_end ()
   /* Mark the end of the function body.
      If control reaches this insn, the function can drop through
      without returning a value.  */
-  emit_note (NULL, NOTE_INSN_FUNCTION_END);
+  emit_note (NOTE_INSN_FUNCTION_END);
 
   /* Must mark the last line number note in the function, so that the test
      coverage code can avoid counting the last line twice.  This just tells
@@ -7088,10 +7088,11 @@ expand_function_end ()
      already exists a copy of this note somewhere above.  This line number
      note is still needed for debugging though, so we can't delete it.  */
   if (flag_test_coverage)
-    emit_note (NULL, NOTE_INSN_REPEATED_LINE_NUMBER);
+    emit_note (NOTE_INSN_REPEATED_LINE_NUMBER);
 
   /* Output a linenumber for the end of the function.
      SDB depends on this.  */
+  
   emit_line_note_force (input_filename, input_line);
 
   /* Before the return label (if any), clobber the return
@@ -7753,7 +7754,7 @@ thread_prologue_and_epilogue_insns (f)
 
       /* Retain a map of the prologue insns.  */
       record_insns (seq, &prologue);
-      prologue_end = emit_note (NULL, NOTE_INSN_PROLOGUE_END);
+      prologue_end = emit_note (NOTE_INSN_PROLOGUE_END);
 
       seq = get_insns ();
       end_sequence ();
@@ -7889,7 +7890,7 @@ thread_prologue_and_epilogue_insns (f)
        goto epilogue_done;
 
       start_sequence ();
-      epilogue_end = emit_note (NULL, NOTE_INSN_EPILOGUE_BEG);
+      epilogue_end = emit_note (NOTE_INSN_EPILOGUE_BEG);
 
       seq = gen_epilogue ();
 
index 0ac08f9e7b46e08af8cfddef55ff7ee5bc725c70..ab4af1823f17f682d165319490eeede033ee5103 100644 (file)
@@ -897,7 +897,7 @@ expand_inline_function (fndecl, parms, target, ignore, type,
      insn that can be used as an insertion point.  */
   map->insns_at_start = get_last_insn ();
   if (map->insns_at_start == 0)
-    map->insns_at_start = emit_note (NULL, NOTE_INSN_DELETED);
+    map->insns_at_start = emit_note (NOTE_INSN_DELETED);
 
   map->regno_pointer_align = inl_f->emit->regno_pointer_align;
   map->x_regno_reg_rtx = inl_f->emit->x_regno_reg_rtx;
@@ -1304,7 +1304,7 @@ expand_inline_function (fndecl, parms, target, ignore, type,
      This line number note is still needed for debugging though, so we can't
      delete it.  */
   if (flag_test_coverage)
-    emit_note (NULL, NOTE_INSN_REPEATED_LINE_NUMBER);
+    emit_note (NOTE_INSN_REPEATED_LINE_NUMBER);
 
   emit_line_note (input_filename, input_line);
 
@@ -1689,7 +1689,7 @@ copy_insn_list (insns, map, static_chain_value)
              && NOTE_LINE_NUMBER (insn) != NOTE_INSN_FUNCTION_BEG
              && NOTE_LINE_NUMBER (insn) != NOTE_INSN_DELETED)
            {
-             copy = emit_note (NULL, NOTE_LINE_NUMBER (insn));
+             copy = emit_note (NOTE_LINE_NUMBER (insn));
              NOTE_DATA (copy) = NOTE_DATA (insn);
              if ((NOTE_LINE_NUMBER (copy) == NOTE_INSN_BLOCK_BEG
                   || NOTE_LINE_NUMBER (copy) == NOTE_INSN_BLOCK_END)
index 5b3a359d606f139b6f259a533bb94b323814a385..ac7b6c3ea24dbb23846dced655f312e039197500 100644 (file)
@@ -2671,7 +2671,7 @@ compensate_edge (e, file)
       start_sequence ();
 
       /* ??? change_stack needs some point to emit insns after.  */
-      after = emit_note (NULL, NOTE_INSN_DELETED);
+      after = emit_note (NOTE_INSN_DELETED);
 
       tmpstack = regstack;
       change_stack (after, &tmpstack, target_stack, EMIT_BEFORE);
index bd9c0184ecf5fa5852e16102968af94c169e347a..2e641673585ffd0da07a1033d0794b277c65189d 100644 (file)
@@ -669,7 +669,7 @@ reload (first, global)
 
   /* Make sure that the last insn in the chain
      is not something that needs reloading.  */
-  emit_note (NULL, NOTE_INSN_DELETED);
+  emit_note (NOTE_INSN_DELETED);
 
   /* Enable find_equiv_reg to distinguish insns made by reload.  */
   reload_first_uid = get_max_uid ();
index 98be2d0565d145c9c1e8972bb813d702df8946f0..52baa2438755195163c44b9a83add0aebb348d93 100644 (file)
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -1541,7 +1541,7 @@ extern rtx emit_call_insn         PARAMS ((rtx));
 extern rtx emit_label                  PARAMS ((rtx));
 extern rtx emit_barrier                        PARAMS ((void));
 extern rtx emit_line_note              PARAMS ((const char *, int));
-extern rtx emit_note                   PARAMS ((const char *, int));
+extern rtx emit_note                   PARAMS ((int));
 extern rtx emit_line_note_force                PARAMS ((const char *, int));
 extern rtx make_insn_raw               PARAMS ((rtx));
 extern void add_function_usage_to       PARAMS ((rtx, rtx));
index f23df4ed753a4d2a37659d5c8ba2245696eb28df..bfbcefda65003de0c85e6e9c85fa406e35a63a2c 100644 (file)
@@ -3838,7 +3838,7 @@ hoist_insn_to_edge (insn, e, val, new)
   if (e->insns == NULL_RTX)
     {
       start_sequence ();
-      emit_note (NULL, NOTE_INSN_DELETED);
+      emit_note (NOTE_INSN_DELETED);
     }
   else
     push_to_sequence (e->insns);
index 08f08db588bc6f7a1883261f528f3ab587a62626..39e41ff6dc5dd219cf7e3e3033f27522ea186158 100644 (file)
@@ -918,11 +918,11 @@ expand_fixup (tree_label, rtl_label, last_insn)
          }
 
        start_sequence ();
-       start = emit_note (NULL, NOTE_INSN_BLOCK_BEG);
+       start = emit_note (NOTE_INSN_BLOCK_BEG);
        if (cfun->x_whole_function_mode_p)
          NOTE_BLOCK (start) = block;
-       fixup->before_jump = emit_note (NULL, NOTE_INSN_DELETED);
-       end = emit_note (NULL, NOTE_INSN_BLOCK_END);
+       fixup->before_jump = emit_note (NOTE_INSN_DELETED);
+       end = emit_note (NOTE_INSN_BLOCK_END);
        if (cfun->x_whole_function_mode_p)
          NOTE_BLOCK (end) = block;
        fixup->context = block;
@@ -2562,7 +2562,7 @@ expand_start_loop (exit_flag)
 
   do_pending_stack_adjust ();
   emit_queue ();
-  emit_note (NULL, NOTE_INSN_LOOP_BEG);
+  emit_note (NOTE_INSN_LOOP_BEG);
   emit_label (thisloop->data.loop.start_label);
 
   return thisloop;
@@ -2594,7 +2594,7 @@ expand_start_null_loop ()
   thisloop->next = loop_stack;
   thisloop->all = nesting_stack;
   thisloop->depth = ++nesting_depth;
-  thisloop->data.loop.start_label = emit_note (NULL, NOTE_INSN_DELETED);
+  thisloop->data.loop.start_label = emit_note (NOTE_INSN_DELETED);
   thisloop->data.loop.end_label = gen_label_rtx ();
   thisloop->data.loop.continue_label = thisloop->data.loop.end_label;
   thisloop->exit_label = thisloop->data.loop.end_label;
@@ -2613,7 +2613,7 @@ void
 expand_loop_continue_here ()
 {
   do_pending_stack_adjust ();
-  emit_note (NULL, NOTE_INSN_LOOP_CONT);
+  emit_note (NOTE_INSN_LOOP_CONT);
   emit_label (loop_stack->data.loop.continue_label);
 }
 
@@ -2765,7 +2765,7 @@ expand_end_loop ()
     }
 
   emit_jump (start_label);
-  emit_note (NULL, NOTE_INSN_LOOP_END);
+  emit_note (NOTE_INSN_LOOP_END);
   emit_label (loop_stack->data.loop.end_label);
 
   POPSTACK (loop_stack);
@@ -2800,7 +2800,7 @@ expand_continue_loop (whichloop)
 
   if (flag_guess_branch_prob)
     {
-      note = emit_note (NULL, NOTE_INSN_PREDICTION);
+      note = emit_note (NOTE_INSN_PREDICTION);
       NOTE_PREDICTION (note) = NOTE_PREDICT (PRED_CONTINUE, IS_TAKEN);
     }
   clear_last_expr ();
@@ -2883,7 +2883,7 @@ expand_exit_loop_top_cond (whichloop, cond)
   if (! expand_exit_loop_if_false (whichloop, cond))
     return 0;
 
-  emit_note (NULL, NOTE_INSN_LOOP_END_TOP_COND);
+  emit_note (NOTE_INSN_LOOP_END_TOP_COND);
   return 1;
 }
 
@@ -3000,7 +3000,7 @@ expand_value_return (val)
       /* Emit information for branch prediction.  */
       rtx note;
 
-      note = emit_note (NULL, NOTE_INSN_PREDICTION);
+      note = emit_note (NOTE_INSN_PREDICTION);
 
       NOTE_PREDICTION (note) = NOTE_PREDICT (pred, NOT_TAKEN);
 
@@ -3420,11 +3420,11 @@ expand_start_bindings_and_block (flags, block)
   /* Create a note to mark the beginning of the block.  */
   if (block_flag)
     {
-      note = emit_note (NULL, NOTE_INSN_BLOCK_BEG);
+      note = emit_note (NOTE_INSN_BLOCK_BEG);
       NOTE_BLOCK (note) = block;
     }
   else
-    note = emit_note (NULL, NOTE_INSN_DELETED);
+    note = emit_note (NOTE_INSN_DELETED);
 
   /* Make an entry on block_stack for the block we are entering.  */
 
@@ -3445,7 +3445,7 @@ expand_start_bindings_and_block (flags, block)
      fix this is to just insert another instruction here, so that the
      instructions inserted after the last unconditional cleanup are
      never the last instruction.  */
-  emit_note (NULL, NOTE_INSN_DELETED);
+  emit_note (NOTE_INSN_DELETED);
 
   if (block_stack
       && !(block_stack->data.block.cleanups == NULL_TREE
@@ -3847,7 +3847,7 @@ expand_end_bindings (vars, mark_ends, dont_jump_in)
 
   if (mark_ends)
     {
-      rtx note = emit_note (NULL, NOTE_INSN_BLOCK_END);
+      rtx note = emit_note (NOTE_INSN_BLOCK_END);
       NOTE_BLOCK (note) = NOTE_BLOCK (thisblock->data.block.first_insn);
     }
   else
@@ -4189,7 +4189,7 @@ expand_decl_cleanup (decl, cleanup)
             fix this is to just insert another instruction here, so that the
             instructions inserted after the last unconditional cleanup are
             never the last instruction.  */
-         emit_note (NULL, NOTE_INSN_DELETED);
+         emit_note (NOTE_INSN_DELETED);
        }
     }
   return 1;
@@ -4446,7 +4446,7 @@ expand_start_case (exit_flag, expr, type, printname)
   /* Make sure case_stmt.start points to something that won't
      need any transformation before expand_end_case.  */
   if (GET_CODE (get_last_insn ()) != NOTE)
-    emit_note (NULL, NOTE_INSN_DELETED);
+    emit_note (NOTE_INSN_DELETED);
 
   thiscase->data.case_stmt.start = get_last_insn ();
 
index 2097e6e0e7b00d75768899cbc97da4983bb917cd..03decb773dfc10c34edf57026e777353c651b916 100644 (file)
@@ -2274,7 +2274,7 @@ copy_loop_body (loop, copy_start, copy_end, map, exit_label, last_iteration,
                       || (last_iteration
                           && unroll_type != UNROLL_COMPLETELY)))
            {
-             copy = emit_note (NULL, NOTE_LINE_NUMBER (insn));
+             copy = emit_note (NOTE_LINE_NUMBER (insn));
              NOTE_DATA (copy) = NOTE_DATA (insn);
            }
          else
@@ -2330,7 +2330,7 @@ copy_loop_body (loop, copy_start, copy_end, map, exit_label, last_iteration,
                   && NOTE_LINE_NUMBER (insn) != NOTE_INSN_LOOP_VTOP
                   && NOTE_LINE_NUMBER (insn) != NOTE_INSN_LOOP_CONT)
            {
-             rtx copy = emit_note (NULL, NOTE_LINE_NUMBER (insn));
+             rtx copy = emit_note (NOTE_LINE_NUMBER (insn));
              NOTE_DATA (copy) = NOTE_DATA (insn);
            }
        }