summaryrefslogtreecommitdiff
path: root/gcc/config/c4x/c4x.h
diff options
context:
space:
mode:
authorm.hayes <m.hayes@138bc75d-0d04-0410-961f-82ee72b054a4>2000-03-17 04:43:19 +0000
committerm.hayes <m.hayes@138bc75d-0d04-0410-961f-82ee72b054a4>2000-03-17 04:43:19 +0000
commita0200acee2bd1bf068ac919ec2428d836ee04cae (patch)
tree47be24a5c6e1cbc2e9503e330c2d68ff98a1a0c9 /gcc/config/c4x/c4x.h
parent5d1e550b1034354ddcbe68c4ae603b8c2e0ad7ea (diff)
downloadgcc-a0200acee2bd1bf068ac919ec2428d836ee04cae.tar.gz
* config/c4x/c4x.h (PARALLEL_INSN_FLAG): Add.
(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
Diffstat (limited to 'gcc/config/c4x/c4x.h')
-rw-r--r--gcc/config/c4x/c4x.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/gcc/config/c4x/c4x.h b/gcc/config/c4x/c4x.h
index b83bfd8b011..136673ae692 100644
--- a/gcc/config/c4x/c4x.h
+++ b/gcc/config/c4x/c4x.h
@@ -110,7 +110,7 @@
#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. */
@@ -207,13 +207,13 @@
"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" }, \
@@ -224,7 +224,7 @@
/* 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:
@@ -236,7 +236,6 @@
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"); \