mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-12 13:23:47 +08:00
daecebc805
2012-01-22 Douglas B Rupp <rupp@gnat.com> * <toplevel>/config/mh-interix: Remove as unneeded. * <toplevel>/config/picflag.m4 (i[[34567]]86-*-interix3*): Change triplet to i[[34567]]86-*-interix[[3-9]]*. * <toplevel>/configure.ac: Remove reference to mh-interix. * <toplevel>/configure: Regenerate. * <toplevel>/libada/configure: Regenerate. * <toplevel>libgcc/config.host (i[34567]86-*-interix3*): Change triplet to i[34567]86-*-interix[3-9]*. * <toplevel>/libgcc/configure: Regenerate. * <toplevel>/liberty/configure: Regenerate. * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete configurations. Change triplet to i[34567]86-*-interix[3-9]*. (extra_options) interix.opt -> i386/interix.opt" (extra_objs):Add winnt-stubs.o * configure.ac: Add interix to target_os .comm on PE check. * configure: Regenerate. * config/interix3.h: Delete and move bits to.. * config/interix.h: Delete and move bits to.. * config/i386/i386-interix3.h: Delete and move bits to.. * config/i386/i386-interix.h: ..here. (TARGET_CPU_DEFAULT): Remove redefinition. (TARGET_ASM_CONSTRUCTOR): Undefine. (SUBTARGET_SWITCHES): Define for ms-bitfields. (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec. (PTRDIFF_TYPE): Define. (LONG_DOUBLE_TYPE_SIZE): Define. (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define. (SUBTARGET_OVERRIDE_OPTIONS): Remove. (TARGET_SECTION_TYPE_FLAGS): Define. (ASM_DECLARE_FUNCTION_NAME): Define. (ASM_OUTPUT_EXTERNAL): Define. (ASM_OUTPUT_EXTERNAL_LIBCALL): Define. (ASM_OUTPUT_ALIGNED_BSS): Define. (PCC_BITFIELD_TYPE_MATTERS): Define. (USE_CONST_SECTION): Define. (SUBTARGET_ENCODE_SECTION_INFO): Remove. (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove. (SUPPORTS_ONE_ONLY): Remove. (I386_PE_STRIP_ENCODING): Define. * config/interix.opt: Delete and move bits to.. * config/i386/interix.opt: ..here. New. (mpe-aligned-commons): Add. * config/i386/t-interix: Add copyright header. (winnt-stubs.o): Add rule. * testsuite/gcc.dg/builtins-config.h: (HAVE_C99_RUNTIME): Do not define for Interix. From-SVN: r183406
93 lines
2.3 KiB
Plaintext
93 lines
2.3 KiB
Plaintext
# _GCC_PICFLAG(FLAG, DISPATCH)
|
|
# ----------------------------
|
|
# Store PIC flag corresponding to DISPATCH triplet in FLAG.
|
|
# Explit use of -fpic in CFLAGS corresponding to FLAG overrides default.
|
|
AC_DEFUN([_GCC_PICFLAG], [
|
|
|
|
case "${$2}" in
|
|
# PIC is the default on some targets or must not be used.
|
|
*-*-darwin*)
|
|
# PIC is the default on this platform
|
|
# Common symbols not allowed in MH_DYLIB files
|
|
$1=-fno-common
|
|
;;
|
|
alpha*-dec-osf5*)
|
|
# PIC is the default.
|
|
;;
|
|
hppa*64*-*-hpux*)
|
|
# PIC is the default for 64-bit PA HP-UX.
|
|
;;
|
|
i[[34567]]86-*-cygwin* | i[[34567]]86-*-mingw* | x86_64-*-mingw*)
|
|
;;
|
|
i[[34567]]86-*-interix[[3-9]]*)
|
|
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
|
# Instead, we relocate shared libraries at runtime.
|
|
;;
|
|
i[[34567]]86-*-nto-qnx*)
|
|
# QNX uses GNU C++, but need to define -shared option too, otherwise
|
|
# it will coredump.
|
|
$1='-fPIC -shared'
|
|
;;
|
|
i[[34567]]86-pc-msdosdjgpp*)
|
|
# DJGPP does not support shared libraries at all.
|
|
;;
|
|
ia64*-*-hpux*)
|
|
# On IA64 HP-UX, PIC is the default but the pic flag
|
|
# sets the default TLS model and affects inlining.
|
|
$1=-fPIC
|
|
;;
|
|
mips-sgi-irix6*)
|
|
# PIC is the default.
|
|
;;
|
|
rs6000-ibm-aix* | powerpc-ibm-aix*)
|
|
# All AIX code is PIC.
|
|
;;
|
|
|
|
# Some targets support both -fPIC and -fpic, but prefer the latter.
|
|
# FIXME: Why?
|
|
i[[34567]]86-*-* | x86_64-*-*)
|
|
$1=-fpic
|
|
;;
|
|
m68k-*-*)
|
|
$1=-fpic
|
|
;;
|
|
# FIXME: Override -fPIC default in libgcc only?
|
|
sh-*-linux* | sh[[2346lbe]]*-*-linux*)
|
|
$1=-fpic
|
|
;;
|
|
# FIXME: Simplify to sh*-*-netbsd*?
|
|
sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
|
|
sh64-*-netbsd* | sh64l*-*-netbsd*)
|
|
$1=-fpic
|
|
;;
|
|
# Default to -fPIC unless specified otherwise.
|
|
*)
|
|
$1=-fPIC
|
|
;;
|
|
esac
|
|
|
|
# If the user explicitly uses -fpic/-fPIC, keep that.
|
|
case "${m4_bpatsubsts($1, PICFLAG, CFLAGS)}" in
|
|
*-fpic*)
|
|
$1=-fpic
|
|
;;
|
|
*-fPIC*)
|
|
$1=-fPIC
|
|
;;
|
|
esac
|
|
])
|
|
|
|
# GCC_PICFLAG
|
|
# -----------
|
|
# Store host PIC flag in PICFLAG.
|
|
AC_DEFUN([GCC_PICFLAG], [
|
|
AC_REQUIRE([AC_CANONICAL_HOST])
|
|
_GCC_PICFLAG([PICFLAG], [host])])
|
|
|
|
# GCC_PICFLAG_FOR_TARGET
|
|
# ----------------------
|
|
# Store target PIC flag in PICFLAG_FOR_TARGET.
|
|
AC_DEFUN([GCC_PICFLAG_FOR_TARGET], [
|
|
AC_REQUIRE([AC_CANONICAL_TARGET])
|
|
_GCC_PICFLAG([PICFLAG_FOR_TARGET], [target])])
|