Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcvs2svn <>2003-02-01 00:24:33 +0300
committercvs2svn <>2003-02-01 00:24:33 +0300
commitbe35d4daa3f2525b35bab1882bf3d2685cfd28ab (patch)
treea5042429073e185961226f03c163445d8277b6b3 /include/coff
parent6b2b7fecccd51ffb55430ef459450cca40d71740 (diff)
This commit was manufactured by cvs2svn to create branchinterps-20030202-branchpointinterps-20030202-branch
'interps-20030202-branch'. Sprout from cagney-unwind-20030108-branch 2003-01-09 20:50:26 UTC cvs2svn 'This commit was manufactured by cvs2svn to create branch 'cagney-' Cherrypick from master 2003-01-31 21:24:32 UTC John David Anglin <dave.anglin@nrc-cnrc.gc.ca> ' * hppa.h (ldwa, ldda): Add ordered opcodes.': ChangeLog Makefile.in Makefile.tpl config.if configure configure.in include/ChangeLog include/coff/ti.h include/coff/tic4x.h include/elf/ChangeLog include/elf/common.h include/elf/mips.h include/elf/ppc.h include/elf/ppc64.h include/elf/s390.h include/elf/sh.h include/elf/sparc.h include/hashtab.h include/opcode/ChangeLog include/opcode/hppa.h include/opcode/m68hc11.h include/splay-tree.h
Diffstat (limited to 'include/coff')
-rw-r--r--include/coff/ti.h8
-rw-r--r--include/coff/tic4x.h6
2 files changed, 11 insertions, 3 deletions
diff --git a/include/coff/ti.h b/include/coff/ti.h
index 0a59b226a..8df15223c 100644
--- a/include/coff/ti.h
+++ b/include/coff/ti.h
@@ -57,6 +57,14 @@ struct external_filehdr
#error "TICOFF_TARGET_ARCH needs to be defined for your CPU"
#endif
+#ifndef TICOFF_TARGET_MACHINE_GET
+#define TICOFF_TARGET_MACHINE_GET(FLAGS) 0
+#endif
+
+#ifndef TICOFF_TARGET_MACHINE_SET
+#define TICOFF_TARGET_MACHINE_SET(FLAGSP, MACHINE)
+#endif
+
/* Default to COFF2 for file output */
#ifndef TICOFF_DEFAULT_MAGIC
#define TICOFF_DEFAULT_MAGIC TICOFF2MAGIC
diff --git a/include/coff/tic4x.h b/include/coff/tic4x.h
index 03215fb53..083cc3b10 100644
--- a/include/coff/tic4x.h
+++ b/include/coff/tic4x.h
@@ -30,14 +30,14 @@
/* We use COFF2. */
#define TICOFF_DEFAULT_MAGIC TICOFF2MAGIC
-#define TICOFF_TARGET_MACHINE_GET (FLAGS) \
+#define TICOFF_TARGET_MACHINE_GET(FLAGS) \
(((FLAGS) & F_VERS) ? bfd_mach_c4x : bfd_mach_c3x)
-#define TICOFF_TARGET_MACHINE_SET (FLAGSP, MACHINE) \
+#define TICOFF_TARGET_MACHINE_SET(FLAGSP, MACHINE) \
do \
{ \
if ((MACHINE) == bfd_mach_c4x) \
- *(FLAGSP) = F_VERS; \
+ *(FLAGSP) |= F_VERS; \
} \
while (0)