/* Definitions of target machine for GNU compiler, for PRO.
|
/* Definitions of target machine for GNU compiler, for PRO.
|
Copyright (C) 1996, 1997, 2002, 2003, 2004, 2007 Free Software Foundation, Inc.
|
Copyright (C) 1996, 1997, 2002, 2003, 2004, 2007 Free Software Foundation, Inc.
|
|
|
This file is part of GCC.
|
This file is part of GCC.
|
|
|
GCC is free software; you can redistribute it and/or modify
|
GCC is free software; you can redistribute it and/or modify
|
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
the Free Software Foundation; either version 3, or (at your option)
|
the Free Software Foundation; either version 3, or (at your option)
|
any later version.
|
any later version.
|
|
|
GCC is distributed in the hope that it will be useful,
|
GCC is distributed in the hope that it will be useful,
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
GNU General Public License for more details.
|
GNU General Public License for more details.
|
|
|
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
along with GCC; see the file COPYING3. If not see
|
along with GCC; see the file COPYING3. If not see
|
<http://www.gnu.org/licenses/>. */
|
<http://www.gnu.org/licenses/>. */
|
|
|
/* Make GCC agree with types.h. */
|
/* Make GCC agree with types.h. */
|
#undef SIZE_TYPE
|
#undef SIZE_TYPE
|
#undef PTRDIFF_TYPE
|
#undef PTRDIFF_TYPE
|
|
|
#define SIZE_TYPE "unsigned int"
|
#define SIZE_TYPE "unsigned int"
|
#define PTRDIFF_TYPE "int"
|
#define PTRDIFF_TYPE "int"
|
|
|
#undef TARGET_OS_CPP_BUILTINS
|
#undef TARGET_OS_CPP_BUILTINS
|
#define TARGET_OS_CPP_BUILTINS() \
|
#define TARGET_OS_CPP_BUILTINS() \
|
do \
|
do \
|
{ \
|
{ \
|
if (!c_dialect_cxx () && !flag_iso) \
|
if (!c_dialect_cxx () && !flag_iso) \
|
{ \
|
{ \
|
builtin_define ("hppa"); \
|
builtin_define ("hppa"); \
|
builtin_define_std ("PWB"); \
|
builtin_define_std ("PWB"); \
|
} \
|
} \
|
builtin_define ("__pro__"); \
|
builtin_define ("__pro__"); \
|
builtin_assert ("system=pro"); \
|
builtin_assert ("system=pro"); \
|
} \
|
} \
|
while (0)
|
while (0)
|
|
|
/* Like the default, except no -lg. */
|
/* Like the default, except no -lg. */
|
#undef LIB_SPEC
|
#undef LIB_SPEC
|
#define LIB_SPEC "%{!p:%{!pg:-lc}}%{p: -L/lib/libp/ -lc}%{pg: -L/lib/libp/ -lc}"
|
#define LIB_SPEC "%{!p:%{!pg:-lc}}%{p: -L/lib/libp/ -lc}%{pg: -L/lib/libp/ -lc}"
|
|
|
/* hpux8 and later have C++ compatible include files, so do not
|
/* hpux8 and later have C++ compatible include files, so do not
|
pretend they are `extern "C"'. */
|
pretend they are `extern "C"'. */
|
#define NO_IMPLICIT_EXTERN_C
|
#define NO_IMPLICIT_EXTERN_C
|
|
|
/* We don't want a crt0.o to get linked in automatically, we want the
|
/* We don't want a crt0.o to get linked in automatically, we want the
|
linker script to pull it in. */
|
linker script to pull it in. */
|
#undef STARTFILE_SPEC
|
#undef STARTFILE_SPEC
|
#define STARTFILE_SPEC ""
|
#define STARTFILE_SPEC ""
|
|
|
/* We need to override the following two macros defined in elfos.h since
|
/* We need to override the following two macros defined in elfos.h since
|
the .comm directive has a different syntax and it can't be used for
|
the .comm directive has a different syntax and it can't be used for
|
local common symbols. */
|
local common symbols. */
|
#undef ASM_OUTPUT_ALIGNED_COMMON
|
#undef ASM_OUTPUT_ALIGNED_COMMON
|
#define ASM_OUTPUT_ALIGNED_COMMON(FILE, NAME, SIZE, ALIGN) \
|
#define ASM_OUTPUT_ALIGNED_COMMON(FILE, NAME, SIZE, ALIGN) \
|
pa_asm_output_aligned_common (FILE, NAME, SIZE, ALIGN)
|
pa_asm_output_aligned_common (FILE, NAME, SIZE, ALIGN)
|
|
|
#undef ASM_OUTPUT_ALIGNED_LOCAL
|
#undef ASM_OUTPUT_ALIGNED_LOCAL
|
#define ASM_OUTPUT_ALIGNED_LOCAL(FILE, NAME, SIZE, ALIGN) \
|
#define ASM_OUTPUT_ALIGNED_LOCAL(FILE, NAME, SIZE, ALIGN) \
|
pa_asm_output_aligned_local (FILE, NAME, SIZE, ALIGN)
|
pa_asm_output_aligned_local (FILE, NAME, SIZE, ALIGN)
|
|
|