1998-06-30 23:56:35 -04:00
|
|
|
/* Definitions of target machine for GNU compiler,
|
|
|
|
for Alpha Linux-based GNU systems.
|
1998-06-29 17:40:49 -04:00
|
|
|
Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
|
1998-06-30 23:56:35 -04:00
|
|
|
Contributed by Richard Henderson.
|
1996-03-16 16:18:52 -05:00
|
|
|
|
|
|
|
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
|
1999-01-11 08:34:38 -05:00
|
|
|
the Free Software Foundation, 59 Temple Place - Suite 330,
|
|
|
|
Boston, MA 02111-1307, USA. */
|
1996-03-16 16:18:52 -05:00
|
|
|
|
|
|
|
#undef TARGET_DEFAULT
|
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
|
|
|
#define TARGET_DEFAULT (MASK_FP | MASK_FPREGS | MASK_GAS)
|
1996-03-16 16:18:52 -05:00
|
|
|
|
|
|
|
#undef CPP_PREDEFINES
|
1998-07-20 19:04:58 -04:00
|
|
|
#define CPP_PREDEFINES \
|
1998-10-03 15:02:05 -04:00
|
|
|
"-Dlinux -Dunix -Asystem(linux) -D_LONGLONG -D__alpha__ " \
|
|
|
|
SUB_CPP_PREDEFINES
|
1996-03-16 16:18:52 -05:00
|
|
|
|
|
|
|
#undef LIB_SPEC
|
|
|
|
#define LIB_SPEC "%{pg:-lgmon} %{pg:-lc_p} %{!pg:-lc}"
|
|
|
|
|
|
|
|
/* Show that we need a GP when profiling. */
|
2000-05-27 22:25:46 -04:00
|
|
|
#undef TARGET_PROFILING_NEEDS_GP
|
1998-06-16 13:08:48 -04:00
|
|
|
#define TARGET_PROFILING_NEEDS_GP 1
|
|
|
|
|
|
|
|
/* Don't care about faults in the prologue. */
|
|
|
|
#undef TARGET_CAN_FAULT_IN_PROLOGUE
|
|
|
|
#define TARGET_CAN_FAULT_IN_PROLOGUE 1
|
2000-03-09 22:01:05 -05:00
|
|
|
|
|
|
|
#undef WCHAR_TYPE
|
|
|
|
#define WCHAR_TYPE "int"
|