(TARGET_SVR3): New target switch.

From-SVN: r7701
This commit is contained in:
Stan Cox 1994-07-11 17:26:58 +00:00
parent 1f29c9132a
commit 89ad259924

View File

@ -197,13 +197,13 @@ extern char * reg_names[];
Redefined in sysv4.h, and luna.h. */ Redefined in sysv4.h, and luna.h. */
#define VERSION_INFO1 "88open OCS/BCS, " #define VERSION_INFO1 "88open OCS/BCS, "
#ifndef VERSION_INFO2 #ifndef VERSION_INFO2
#define VERSION_INFO2 "$Revision: 1.58 $" #define VERSION_INFO2 "$Revision: 1.59 $"
#endif #endif
#ifndef VERSION_STRING #ifndef VERSION_STRING
#define VERSION_STRING version_string #define VERSION_STRING version_string
#ifdef __STDC__ #ifdef __STDC__
#define TM_RCS_ID "@(#)" __FILE__ " $Revision: 1.58 $ " __DATE__ #define TM_RCS_ID "@(#)" __FILE__ " $Revision: 1.59 $ " __DATE__
#else #else
#define TM_RCS_ID "$What$" #define TM_RCS_ID "$What$"
#endif /* __STDC__ */ #endif /* __STDC__ */
@ -224,6 +224,7 @@ extern char * reg_names[];
#define MASK_OCS_DEBUG_INFO 0x00000004 /* Emit .tdesc info */ #define MASK_OCS_DEBUG_INFO 0x00000004 /* Emit .tdesc info */
#define MASK_OCS_FRAME_POSITION 0x00000008 /* Debug frame = CFA, not r30 */ #define MASK_OCS_FRAME_POSITION 0x00000008 /* Debug frame = CFA, not r30 */
#define MASK_SVR4 0x00000010 /* Target is AT&T System V.4 */ #define MASK_SVR4 0x00000010 /* Target is AT&T System V.4 */
#define MASK_SVR3 0x00000020 /* Target is AT&T System V.3 */
#define MASK_NO_UNDERSCORES 0x00000040 /* Don't emit a leading `_' */ #define MASK_NO_UNDERSCORES 0x00000040 /* Don't emit a leading `_' */
#define MASK_BIG_PIC 0x00000080 /* PIC with large got-rel's -fPIC */ #define MASK_BIG_PIC 0x00000080 /* PIC with large got-rel's -fPIC */
#define MASK_TRAP_LARGE_SHIFT 0x00000100 /* Trap if shift not <= 31 */ #define MASK_TRAP_LARGE_SHIFT 0x00000100 /* Trap if shift not <= 31 */
@ -246,6 +247,7 @@ extern char * reg_names[];
#define TARGET_OCS_DEBUG_INFO (target_flags & MASK_OCS_DEBUG_INFO) #define TARGET_OCS_DEBUG_INFO (target_flags & MASK_OCS_DEBUG_INFO)
#define TARGET_OCS_FRAME_POSITION (target_flags & MASK_OCS_FRAME_POSITION) #define TARGET_OCS_FRAME_POSITION (target_flags & MASK_OCS_FRAME_POSITION)
#define TARGET_SVR4 (target_flags & MASK_SVR4) #define TARGET_SVR4 (target_flags & MASK_SVR4)
#define TARGET_SVR3 (target_flags & MASK_SVR3)
#define TARGET_NO_UNDERSCORES (target_flags & MASK_NO_UNDERSCORES) #define TARGET_NO_UNDERSCORES (target_flags & MASK_NO_UNDERSCORES)
#define TARGET_BIG_PIC (target_flags & MASK_BIG_PIC) #define TARGET_BIG_PIC (target_flags & MASK_BIG_PIC)
#define TARGET_TRAP_LARGE_SHIFT (target_flags & MASK_TRAP_LARGE_SHIFT) #define TARGET_TRAP_LARGE_SHIFT (target_flags & MASK_TRAP_LARGE_SHIFT)
@ -329,6 +331,11 @@ extern char * reg_names[];
for (i = 0; i < FIRST_PSEUDO_REGISTER; i++) \ for (i = 0; i < FIRST_PSEUDO_REGISTER; i++) \
reg_names[i]--; \ reg_names[i]--; \
m88k_pound_sign = "#"; \ m88k_pound_sign = "#"; \
} \
else \
{ \
target_flags |= MASK_SVR3; \
target_flags &= ~MASK_SVR4; \
} \ } \
\ \
if (m88k_short_data) \ if (m88k_short_data) \