Commit e7a2eff8 by Richard Kenner

(WINDOWS_NT): No longer defined and used.

(MASK_WINDOWS_NT, TARGET_WINDOWS_NT): New macros.
(ASM_OUTPUT_ADDR_DIFF_ELT): Use TARGET_WINDOWS_NT.

From-SVN: r12110
parent a6adb9ed
...@@ -69,11 +69,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -69,11 +69,6 @@ Boston, MA 02111-1307, USA. */
/* Print subsidiary information on the compiler version in use. */ /* Print subsidiary information on the compiler version in use. */
#define TARGET_VERSION #define TARGET_VERSION
/* Default this to not be compiling for Windows/NT. */
#ifndef WINDOWS_NT
#define WINDOWS_NT 0
#endif
/* Define the location for the startup file on OSF/1 for Alpha. */ /* Define the location for the startup file on OSF/1 for Alpha. */
#define MD_STARTFILE_PREFIX "/usr/lib/cmplrs/cc/" #define MD_STARTFILE_PREFIX "/usr/lib/cmplrs/cc/"
...@@ -142,6 +137,10 @@ extern enum alpha_fp_trap_mode alpha_fptm; ...@@ -142,6 +137,10 @@ extern enum alpha_fp_trap_mode alpha_fptm;
#define MASK_IEEE_WITH_INEXACT 32 #define MASK_IEEE_WITH_INEXACT 32
#define TARGET_IEEE_WITH_INEXACT (target_flags & MASK_IEEE_WITH_INEXACT) #define TARGET_IEEE_WITH_INEXACT (target_flags & MASK_IEEE_WITH_INEXACT)
/* This means we are compiling for Windows NT. */
#define MASK_WINDOWS_NT 64
#define TARGET_WINDOWS_NT (target_flags & MASK_WINDOWS_NT)
/* Macro to define tables used to set the flags. /* Macro to define tables used to set the flags.
This is a list in braces of pairs in braces, This is a list in braces of pairs in braces,
each pair being { "NAME", VALUE } each pair being { "NAME", VALUE }
...@@ -1850,13 +1849,9 @@ literal_section () \ ...@@ -1850,13 +1849,9 @@ literal_section () \
/* This is how to output an element of a case-vector that is relative. */ /* This is how to output an element of a case-vector that is relative. */
#if WINDOWS_NT
#define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, VALUE, REL) \ #define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, VALUE, REL) \
fprintf (FILE, "\t.long $%d\n", (VALUE) + 32) fprintf (FILE, "\t.%s $%d\n", TARGET_WINDOWS_NT ? "long" : "gprel32", \
#else (VALUE) + 32)
#define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, VALUE, REL) \
fprintf (FILE, "\t.gprel32 $%d\n", (VALUE) + 32)
#endif
/* This is how to output an assembler line /* This is how to output an assembler line
that says to advance the location counter that says to advance the location counter
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment