OSDN Git Service

* config/c4x/c4x.h (PARALLEL_INSN_FLAG): Add.
authorm.hayes <m.hayes@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Mar 2000 04:43:19 +0000 (04:43 +0000)
committerm.hayes <m.hayes@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Mar 2000 04:43:19 +0000 (04:43 +0000)
(PARALLEL_PACK_FLAG): Delete.
(TARGET_SWITCHES): Update.
(TARGET_PARALLEL): Use PARALLEL_INSN_FLAG.

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

gcc/ChangeLog
gcc/config/c4x/c4x.h

index fffbf78..3d0f9a0 100644 (file)
@@ -1,3 +1,10 @@
+2000-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
+
+       * config/c4x/c4x.h (PARALLEL_INSN_FLAG): Add.
+       (PARALLEL_PACK_FLAG): Delete.
+       (TARGET_SWITCHES): Update.
+       (TARGET_PARALLEL): Use PARALLEL_INSN_FLAG.
+
 Thu Mar 16 18:52:32 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
        * fold-const.c (fold): Fix a few cases when the returned result
index b83bfd8..136673a 100644 (file)
 #define LOOP_UNSIGNED_FLAG  0x0004000 /* Allow unsigned loop counters.  */
 #define FORCE_FLAG          0x0008000 /* Force op0 and op1 to be same.  */
 #define PRESERVE_FLOAT_FLAG 0x0010000 /* Save all 40 bits for floats.  */
-#define PARALLEL_PACK_FLAG  0x0020000 /* Allow parallel insn packing.  */
+#define PARALLEL_INSN_FLAG  0x0020000 /* Allow parallel insns.  */
 #define PARALLEL_MPY_FLAG   0x0040000 /* Allow MPY||ADD, MPY||SUB insns.  */
 #define ALIASES_FLAG       0x0080000 /* Assume mem refs possibly aliased.  */
 
     "Preserve all 40 bits of FP reg across call" }, \
   { "no-preserve-float", -PRESERVE_FLOAT_FLAG, \
     "Only preserve 32 bits of FP reg across call" }, \
-  { "parallel-insns", PARALLEL_PACK_FLAG, \
+  { "parallel-insns", PARALLEL_INSN_FLAG, \
     "Enable parallel instructions" }, \
-  { "no-parallel-mpy", -PARALLEL_MPY_FLAG, \
+  { "no-parallel-insns", -PARALLEL_INSN_FLAG, \
     "Disable parallel instructions" }, \
   { "parallel-mpy", PARALLEL_MPY_FLAG, \
     "Enable MPY||ADD and MPY||SUB instructions" }, \
-  { "no-parallel-insns", -PARALLEL_PACK_FLAG, \
+  { "no-parallel-mpy", -PARALLEL_MPY_FLAG, \
     "Disable MPY||ADD and MPY||SUB instructions" }, \
   { "aliases", ALIASES_FLAG, \
     "Assume that pointers may be aliased" }, \
 /* Default target switches.  */
 
 /* Play safe, not the fastest code.  */
-#define TARGET_DEFAULT         ALIASES_FLAG | PARALLEL_PACK_FLAG \
+#define TARGET_DEFAULT         ALIASES_FLAG | PARALLEL_INSN_FLAG \
                                | PARALLEL_MPY_FLAG | RPTB_FLAG
 
 /* Caveats:
 extern int target_flags;
 
 #define TARGET_INLINE          (! optimize_size) /* Inline MPYI.  */
-#define TARGET_PARALLEL                1 /* Enable parallel insns in MD.  */
 #define TARGET_SMALL_REG_CLASS 0
 
 #define TARGET_SMALL           (target_flags & SMALL_MEMORY_FLAG)
@@ -256,10 +255,9 @@ extern int target_flags;
 #define TARGET_LOOP_UNSIGNED   (target_flags & LOOP_UNSIGNED_FLAG)
 #define TARGET_FORCE           (target_flags & FORCE_FLAG)
 #define        TARGET_PRESERVE_FLOAT   (target_flags & PRESERVE_FLOAT_FLAG)
-#define TARGET_PARALLEL_PACK   (TARGET_RPTB \
-                                && (target_flags & PARALLEL_PACK_FLAG) \
+#define TARGET_PARALLEL                ((target_flags & PARALLEL_INSN_FLAG) \
                                 && optimize >= 2)
-#define TARGET_PARALLEL_MPY    (TARGET_PARALLEL_PACK \
+#define TARGET_PARALLEL_MPY    (TARGET_PARALLEL \
                                 && (target_flags & PARALLEL_MPY_FLAG))
 #define        TARGET_ALIASES          (target_flags & ALIASES_FLAG)
 
@@ -2424,10 +2422,14 @@ do { fprintf (asm_out_file, "\t.sdef\t");       \
           "\t.sdef\t.bf%s\t.val\t.%s\t.scl\t101%s\t.line\t%d%s\t.endef\n", \
           SDB_DELIM, SDB_DELIM, SDB_DELIM, (LINE), SDB_DELIM)
 
+/* Note we output relative line numbers for .ef which gas converts
+   to absolute line numbers.  The TI compiler outputs absolute line numbers
+   in the .sym directive which gas does not support.  */
 #define PUT_SDB_FUNCTION_END(LINE)             \
   fprintf (asm_out_file,                       \
           "\t.sdef\t.ef%s\t.val\t.%s\t.scl\t101%s\t.line\t%d%s\t.endef\n", \
-          SDB_DELIM, SDB_DELIM, SDB_DELIM, (LINE), SDB_DELIM)
+          SDB_DELIM, SDB_DELIM, SDB_DELIM, \
+           (LINE), SDB_DELIM)
 
 #define PUT_SDB_EPILOGUE_END(NAME)                     \
 do { fprintf (asm_out_file, "\t.sdef\t");              \