From 2eab15c97414cf1358106b009a4edd7f5f6151b1 Mon Sep 17 00:00:00 2001 From: Phil Edwards Date: Wed, 24 Aug 2005 07:13:10 +0000 Subject: config.gcc (*-*-vxworks*): Update tm_file, add extra_options, remove use_collect2. 2005-08-22 Phil Edwards * config.gcc (*-*-vxworks*): Update tm_file, add extra_options, remove use_collect2. (powerpc-wrs-vxworks): Update, split out *-*-vxworksae target. * target-def.h (TARGET_HAVE_CTORS_DTORS): Allow target configuration files to override the default value. * config/t-vxworks: Remove INSTALL_ASSERT_H. Define STMP_FIXPROTO, EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS. * config/vx-common.h: New file, split out from... * config/vxworks.h: here. Update for VxWorks 6.x and RTP mode. * config/vxworksae.h: New file, for VxWorks AE. * config/vxworks.opt: New file. * config/vxlib.c: Update for VxWorks 6. * config/rs6000/t-vxworks (MULTILIB_OPTIONS): New list. Adjust other MULTILIB_* variables appropriately. (LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS): Correct from t-ppccomm. * config/rs6000/t-vxworksae: New file, adjust multilibs for AE. * config/rs6000/vxworks.h: Update for VxWorks 6. * config/rs6000/vxworksae.h: New file, mostly placeholder for now. From-SVN: r103432 --- gcc/config.gcc | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index dde53d7..f728132 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -533,14 +533,14 @@ case ${target} in ;; *-*-vxworks*) tmake_file=t-vxworks - tm_file="${tm_file} elfos.h svr4.h vxworks.h" + tm_file="${tm_file} elfos.h svr4.h" + xm_defines=POSIX + extra_options="${extra_options} vxworks.opt" case ${enable_threads} in no) ;; "" | yes | vxworks) thread_file='vxworks' ;; *) echo 'Unknown thread configuration for VxWorks'; exit 1 ;; esac - use_collect2=yes - xm_defines=POSIX ;; esac @@ -1722,22 +1722,30 @@ powerpc-*-gnu*) thread_file='posix' fi ;; -powerpc-wrs-vxworks*) +powerpc-wrs-vxworks|powerpc-wrs-vxworksae) # We want vxworks.h after rs6000/sysv4.h, which unfortunately # means we have to redo the tm_file list from scratch. tm_file="rs6000/rs6000.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h" - tm_file="${tm_file} vxworks.h rs6000/vxworks.h" tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-ppccomm rs6000/t-vxworks" extra_options="${extra_options} rs6000/sysv4.opt" extra_headers=ppc-asm.h + case ${target} in + *-vxworksae*) + tm_file="${tm_file} vx-common.h vxworksae.h rs6000/vxworks.h rs6000/vxworksae.h" + tmake_file="${tmake_file} rs6000/t-vxworksae" + ;; + *-vxworks*) + tm_file="${tm_file} vx-common.h vxworks.h rs6000/vxworks.h" + ;; + esac ;; -powerpc-wrs-windiss*) # Instruction-level simulator for VxWorks. +powerpc-wrs-windiss*) # Instruction-level simulator for VxWorks. tm_file="${tm_file} elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/windiss.h" - tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" + tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" extra_options="${extra_options} rs6000/sysv4.opt" - thread_file="" + thread_file="" use_fixproto=yes - ;; + ;; powerpc-*-lynxos*) xm_defines=POSIX tm_file="${tm_file} dbxelf.h elfos.h rs6000/sysv4.h rs6000/lynx.h lynx.h" -- cgit v1.1