]> gcc.gnu.org Git - gcc.git/commitdiff
t-mt (MULTILIB_OPTIONS): Add ms2
authorNathan Sidwell <nathan@codesourcery.com>
Tue, 13 Dec 2005 09:54:15 +0000 (09:54 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 13 Dec 2005 09:54:15 +0000 (09:54 +0000)
* config/mt/t-mt (MULTILIB_OPTIONS): Add ms2
(MULTILIB_DIRNAMES): Add ms2.  Prefix ms1 dirs with 'ms1'.
* config/mt/mt.c (ms1_final_prescan): Use TARGET_MS2,
TARGET_MS1_64_001 appropriately.
(ms1_machine_reorg): Use TARGET_MS2.

From-SVN: r108477

gcc/ChangeLog
gcc/config/mt/mt.c
gcc/config/mt/t-mt

index cc2131f6f740d52768540801cef2d8fa47d7b3dc..0a6bd70888f5938ef7434e8f8f6dd67433f59b84 100644 (file)
@@ -1,3 +1,11 @@
+2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * config/mt/t-mt (MULTILIB_OPTIONS): Add ms2
+       (MULTILIB_DIRNAMES): Add ms2.  Prefix ms1 dirs with 'ms1'.
+       * config/mt/mt.c (ms1_final_prescan): Use TARGET_MS2,
+       TARGET_MS1_64_001 appropriately.
+       (ms1_machine_reorg): Use TARGET_MS2.
+
 2005-12-13  Jakub Jelinek  <jakub@redhat.com>
 
        PR debug/25023
index 74a77e82ec5e2025837e0dfc6b47b753ddbeba8c..675ec2df4bb81b87ac742294788d26915b8acff4 100644 (file)
@@ -221,7 +221,7 @@ ms1_final_prescan_insn (rtx   insn,
   ms1_nop_reasons = "";
 
   /* ms2 constraints are dealt with in reorg.  */
-  if (ms1_cpu == PROCESSOR_MS2)
+  if (TARGET_MS2)
     return;
   
   /* Only worry about real instructions.  */
@@ -257,7 +257,7 @@ ms1_final_prescan_insn (rtx   insn,
     case TYPE_STORE:
       /* Avoid consecutive memory operation.  */
       if  ((prev_attr == TYPE_LOAD || prev_attr == TYPE_STORE)
-          && ms1_cpu == PROCESSOR_MS1_64_001)
+          && TARGET_MS1_64_001)
        {
          ms1_nops_required = 1;
          ms1_nop_reasons = "consecutive mem ops";
@@ -279,8 +279,7 @@ ms1_final_prescan_insn (rtx   insn,
     case TYPE_BRANCH:
       if (insn_dependent_p (prev_i, insn))
        {
-         if (prev_attr == TYPE_ARITH
-             && ms1_cpu == PROCESSOR_MS1_64_001)
+         if (prev_attr == TYPE_ARITH && TARGET_MS1_64_001)
            {
              /* One cycle of delay between arith
                 instructions and branch dependent on arith.  */
@@ -291,7 +290,7 @@ ms1_final_prescan_insn (rtx   insn,
            {
              /* Two cycles of delay are required
                 between load and dependent branch.  */
-             if (ms1_cpu == PROCESSOR_MS1_64_001)
+             if (TARGET_MS1_64_001)
                ms1_nops_required = 2;
              else
                ms1_nops_required = 1;
@@ -2465,13 +2464,13 @@ ms1_reorg_hazard (void)
 static void
 ms1_machine_reorg (void)
 {
-  if (cfun->machine->has_loops)
+  if (cfun->machine->has_loops && TARGET_MS2)
     ms1_reorg_loops (dump_file);
 
   if (ms1_flag_delayed_branch)
     dbr_schedule (get_insns (), dump_file);
   
-  if (ms1_cpu == PROCESSOR_MS2)
+  if (TARGET_MS2)
     ms1_reorg_hazard ();
 }
 \f
index 5e400eb7b7a87a235bc62c515c083adaa6d4cc56..24924e45c0844782561fadc9789c2657b6f6c842 100644 (file)
@@ -59,8 +59,8 @@ crtn.o: $(srcdir)/config/mt/crtn.asm $(GCC_PASSES)
 # See gcc/genmultilib, gcc/gcc.texi and gcc/tm.texi for a
 # description of the options and their values.
 #
-MULTILIB_OPTIONS    = march=ms1-64-001/march=ms1-16-002/march=ms1-16-003
-MULTILIB_DIRNAMES   = 64-001 16-002 16-003
+MULTILIB_OPTIONS    = march=ms1-64-001/march=ms1-16-002/march=ms1-16-003/march=ms2
+MULTILIB_DIRNAMES   = ms1-64-001 ms1-16-002 ms1-16-003 ms2
 # MULTILIB_MATCHES    =
 # MULTILIB_EXCEPTIONS =
 # MULTILIB_EXTRA_OPTS = 
This page took 0.136505 seconds and 5 git commands to generate.