1995-04-13 08:47:43 -04:00
|
|
|
/* Definitions of target machine for GNU compiler, for DEC Alpha
|
|
|
|
running Windows/NT.
|
1998-03-04 21:50:12 -05:00
|
|
|
Copyright (C) 1995, 1996, 1998 Free Software Foundation, Inc.
|
1995-04-13 08:47:43 -04:00
|
|
|
Contributed by Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
|
|
|
|
|
|
|
|
This file is part of GNU CC.
|
|
|
|
|
|
|
|
GNU CC is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
any later version.
|
|
|
|
|
|
|
|
GNU CC is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with GNU CC; see the file COPYING. If not, write to
|
1995-06-15 09:10:54 -04:00
|
|
|
the Free Software Foundation, 59 Temple Place - Suite 330,
|
|
|
|
Boston, MA 02111-1307, USA. */
|
1995-04-13 08:47:43 -04:00
|
|
|
|
alpha.h (CPP_PREDEFINES, [...]): Move OSF/1 specific defines out.
* alpha.h (CPP_PREDEFINES, LIB_SPEC, LINK_SPEC, STARTFILE_SPEC,
MD_STARTFILE_PREFIX, ASM_FILE_START, ASM_SPEC, ASM_FINAL_SPEC):
Move OSF/1 specific defines out.
* alpha/elf.h (TARGET_VERSION, CPP_PREDEFINES, DEFAULT_VTABLE_THUNKS):
Move Linux specific defines out.
(LINK_SPEC): Genericize.
(ASM_FILE_START): Emit .arch if using more than the base insn set.
(ASM_OUTPUT_SOURCE_LINE): Remove; identical to alpha.h version.
(SDB_DEBUGGING_INFO): Remove; gas can't handle it.
(HANDLE_SYSV_PRAGMA): Define.
* alpha/osf.h: New file.
* alpha/linux.h: Split. Retain file-format independant defines.
Import Linux bits from elf.h.
(CPP_PREDEFINES): Take a file-format specific SUB_CPP_PREDEFINES
(FUNCTION_PROFILER): _mcount takes its address in $28.
(MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Remove undef.
* alpha/linux-ecoff.h: New file.
* alpha/linux-elf.h: New file.
* alpha/vms.h (LIB_SPEC, LINK_SPEC): Copy from osf.h.
* alpha/win-nt.h (TARGET_DEFAULT): Define.
* configure.in (alpha*-*-osf*, alpha*-*-linux*) [tm_file]:
Add new headers as appropriate.
* configure.in (alpha*): Enable Haifa by default.
(*-*-winnt3*): Change to winnt*, since we're not v3 specific.
* configure: Rebuild.
From-SVN: r17211
1997-12-22 23:42:30 -05:00
|
|
|
#undef TARGET_DEFAULT
|
1998-03-04 21:50:12 -05:00
|
|
|
#define TARGET_DEFAULT (MASK_FP | MASK_FPREGS)
|
|
|
|
|
1995-04-13 08:47:43 -04:00
|
|
|
/* Names to predefine in the preprocessor for this target machine. */
|
|
|
|
|
|
|
|
#undef CPP_PREDEFINES
|
1998-07-20 19:04:58 -04:00
|
|
|
#define CPP_PREDEFINES "-DWIN32 -D_WIN32 -DWINNT -D__STDC__=0 -DALMOST_STDC \
|
|
|
|
-D_M_ALPHA -D_ALPHA_ -D_LONGLONG -D__unaligned= -D__stdcall= -Asystem(winnt)"
|
1995-04-13 08:47:43 -04:00
|
|
|
|
|
|
|
#undef ASM_SPEC
|
|
|
|
#undef ASM_FINAL_SPEC
|
1995-11-26 14:39:43 -05:00
|
|
|
#define ASM_SPEC "-nopp -nologo %{g:-Zi}"
|
1995-04-13 08:47:43 -04:00
|
|
|
|
1996-02-16 08:39:42 -05:00
|
|
|
#undef WCHAR_TYPE
|
|
|
|
#define WCHAR_TYPE "short unsigned int"
|
|
|
|
#undef WCHAR_TYPE_SIZE
|
|
|
|
#define WCHAR_TYPE_SIZE 16
|
|
|
|
|
1995-04-13 08:47:43 -04:00
|
|
|
/* We can't do any debugging. */
|
|
|
|
#undef SDB_DEBUGGING_INFO
|
|
|
|
#undef DBX_DEBUGGING_INFO
|
|
|
|
#undef MIPS_DEBUGGING_INFO
|
|
|
|
|
|
|
|
#undef ASM_FILE_START
|
|
|
|
#define ASM_FILE_START(FILE) \
|
|
|
|
{ \
|
|
|
|
alpha_write_verstamp (FILE); \
|
|
|
|
fprintf (FILE, "\t.set noreorder\n"); \
|
|
|
|
fprintf (FILE, "\t.set volatile\n"); \
|
|
|
|
fprintf (FILE, "\t.set noat\n"); \
|
|
|
|
fprintf (FILE, "\t.globl\t__fltused\n"); \
|
|
|
|
ASM_OUTPUT_SOURCE_FILENAME (FILE, main_input_filename); \
|
|
|
|
}
|
|
|
|
|
|
|
|
#undef LIB_SPEC
|
1995-09-12 17:59:37 -04:00
|
|
|
#define LIB_SPEC "%{mwindows:-subsystem windows -e _WinMainCRTStartup \
|
|
|
|
USER32.LIB%s GDI32.LIB%s COMDLG32.LIB%s WINSPOOL.LIB%s} \
|
|
|
|
%{!mwindows:-subsystem console -e _mainCRTStartup} \
|
|
|
|
%{mcrtmt:LIBCMT.LIB%s KERNEL32.LIB%s} %{!mcrtmt:LIBC.LIB%s KERNEL32.LIB%s} \
|
1995-04-13 08:47:43 -04:00
|
|
|
%{v}"
|