(MY_ISCOFF): New macro.
authorRichard Kenner <kenner@gcc.gnu.org>
Wed, 27 Jan 1993 11:46:02 +0000 (06:46 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Wed, 27 Jan 1993 11:46:02 +0000 (06:46 -0500)
From-SVN: r3362

gcc/config/a29k/unix.h
gcc/config/rs6000/rs6000.h

index 0102c75156391807ee60a437d7c75f6ba8f605a6..e135b48554b409fe07dadb0482146ef4e1cf36ee 100644 (file)
@@ -40,6 +40,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #undef LINK_SPEC
 #define LINK_SPEC "-T default.gld%s"
 
+/* Define the magic numbers that we recognize as COFF.  */
+
+#define MY_ISCOFF(magic) ((magic) == SIPFBOMAGIC || (magic) == SIPRBOMAGIC)
+
 /* For some systems, it is best if double-word objects are aligned on a 
    doubleword boundary.  We want to maintain compatibility with MetaWare in
    a29k.h, but do not feel constrained to do so here.  */
index e0f7fddb64a446ebd10c5503cba41507590c71cb..3e76e3609b566137c2d92021c7b71456726f557f 100644 (file)
@@ -1198,6 +1198,11 @@ struct rs6000_args {int words, fregno, nargs_prototype; };
 /* Define if the object format being used is COFF or a superset.  */
 #define OBJECT_FORMAT_COFF
 
+/* Define the magic numbers that we recognize as COFF.  */
+
+#define MY_ISCOFF(magic) \
+  ((magic) == U802WRMAGIC || (magic) == U802ROMAGIC || (magic) == U802TOCMAGIC)
+
 /* This is the only version of nm that collect2 can work with.  */
 #define REAL_NM_FILE_NAME "/usr/ucb/nm"