]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
dsp16xxx.c: Include ggc.h
authorMark Mitchell <mark@codesourcery.com>
Wed, 8 Sep 1999 06:31:47 +0000 (06:31 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 8 Sep 1999 06:31:47 +0000 (06:31 +0000)
* dsp16xxx.c: Include ggc.h
(override_options): Mark GC roots.
* mn10200.c: Include ggc.h.
(asm_file_start): Mark GC roots.
* tahoe.c: Include ggc.h.
(extensible_operand): Mark GC roots.

From-SVN: r29187

gcc/ChangeLog
gcc/config/dsp16xx/dsp16xx.c
gcc/config/mn10200/mn10200.c
gcc/config/tahoe/tahoe.c

index 28ff25d94868e4df7f3173d23410d705188cd2b8..4f2adb4bcb5066d45db5c70f33fc50e98ee850a1 100644 (file)
@@ -1,3 +1,12 @@
+Tue Sep  7 23:31:53 1999  Mark Mitchell  <mark@codesourcery.com>
+
+       * dsp16xxx.c: Include ggc.h
+       (override_options): Mark GC roots.
+       * mn10200.c: Include ggc.h.
+       (asm_file_start): Mark GC roots.
+       * tahoe.c: Include ggc.h.
+       (extensible_operand): Mark GC roots.
+
 Tue Sep  7 23:23:15 1999  Linas Vepstas  <linas@linas.org>
 
        * README: Add section discussing status of ELF ABI.
index cac77af42943d95b1759263b21a9bf51d2e5c0c3..b249c071fd15ca272642ee0468573d2836de65be 100644 (file)
@@ -35,6 +35,7 @@ Boston, MA 02111-1307, USA.  */
 #include "expr.h"
 #include "function.h"
 #include "flags.h"
+#include "ggc.h"
 
 char *text_seg_name;
 char *rsect_text;
@@ -1529,8 +1530,33 @@ override_options ()
          flag_inline_functions = 1;
        }
     }
+
+  /* Mark our global variables for GC.  */
+  ggc_add_rtx (&dsp16xx_addhf3_libcall, 1);
+  ggc_add_rtx (dsp16xx_addhf3_libcall, 1);
+  ggc_add_rtx (dsp16xx_subhf3_libcall, 1);
+  ggc_add_rtx (dsp16xx_mulhf3_libcall, 1);
+  ggc_add_rtx (dsp16xx_divhf3_libcall, 1);
+  ggc_add_rtx (dsp16xx_cmphf3_libcall, 1);
+  ggc_add_rtx (dsp16xx_fixhfhi2_libcall, 1);
+  ggc_add_rtx (dsp16xx_floathihf2_libcall, 1);
+  ggc_add_rtx (dsp16xx_neghf2_libcall, 1);
+  ggc_add_rtx (dsp16xx_mulhi3_libcall, 1);
+  ggc_add_rtx (dsp16xx_udivqi3_libcall, 1);
+  ggc_add_rtx (dsp16xx_udivhi3_libcall, 1);
+  ggc_add_rtx (dsp16xx_divqi3_libcall, 1);
+  ggc_add_rtx (dsp16xx_divhi3_libcall, 1);
+  ggc_add_rtx (dsp16xx_modqi3_libcall, 1);
+  ggc_add_rtx (dsp16xx_modhi3_libcall, 1);
+  ggc_add_rtx (dsp16xx_umodqi3_libcall, 1);
+  ggc_add_rtx (dsp16xx_umodhi3_libcall, 1);
+  ggc_add_rtx (dsp16xx_ashrhi3_libcall, 1);
+  ggc_add_rtx (dsp16xx_ashlhi3_libcall, 1);
+  ggc_add_rtx (dsp16xx_ucmphi2_libcall, 1);
+  ggc_add_rtx (dsp16xx_lshrhi3_libcall, 1);
 }
 
+
 enum rtx_code
 next_cc_user_code (insn)
 rtx insn;
index cda180a567536531ff44798042f1938d8fe427cd..a74e6b65643cabb9689e43a35dc3bd5df20c9fb7 100644 (file)
@@ -36,6 +36,7 @@ Boston, MA 02111-1307, USA.  */
 #include "expr.h"
 #include "function.h"
 #include "obstack.h"
+#include "ggc.h"
 
 /* Global registers known to hold the value zero.
 
@@ -72,6 +73,8 @@ asm_file_start (file)
   else
     fprintf (file, "\n\n");
   output_file_directive (file, main_input_filename);
+  ggc_add_rtx (&zero_dreg, 1);
+  ggc_add_rtx (&zero_areg, 1);
 }
 
 /* Print operand X using operand code CODE to assembly language output file
index 89cdc3d8f84d25540036ccd5e72ff65064ee0ec1..8ad8bef2adac00088c8509fd7f6786f54360fe9b 100644 (file)
@@ -35,6 +35,7 @@ Boston, MA 02111-1307, USA.  */
 #include "function.h"
 #include "output.h"
 #include "insn-attr.h"
+#include "ggc.h"
 
 /* On tahoe, you have to go to memory to convert a register
    from sub-word to word.  */
@@ -50,8 +51,11 @@ extensible_operand (op, mode)
        || (GET_CODE (op) == SUBREG
           && GET_CODE (SUBREG_REG (op)) == REG))
       && tahoe_reg_conversion_loc == 0)
-    tahoe_reg_conversion_loc
-      = assign_stack_local (SImode, GET_MODE_SIZE (SImode));
+    {
+      tahoe_reg_conversion_loc
+       = assign_stack_local (SImode, GET_MODE_SIZE (SImode));
+      ggc_add_rtx_root (&tahoe_reg_conversion_loc, 1);
+    }
 
   return general_operand (op, mode);
 }