This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] gcc configure changes for VMS
- From: Douglas B Rupp <rupp at gnat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 29 Jul 2009 23:05:07 -0700
- Subject: [PATCH] gcc configure changes for VMS
My patch submitted earlier today should be applied first:
http://gcc.gnu.org/ml/gcc-patches/2009-07/msg01712.html
--Douglas B Rupp
AdaCore
2009-07-29 Douglas B Rupp <rupp@gnat.com>
* config.build (ia64-hp-*vms*): New target.
(alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
with ia64-hp-*vms*.
* config.gcc (ia64-hp-*vms*): New target.
(alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
with ia64-hp-*vms*.
* config.host (ia64-hp-*vms*): New target.
(alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
with ia64-hp-*vms*.
* libgcc/config.host (ia64-hp-*vms*): New target.
(alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
with ia64-hp-*vms*.
--- gcc/config.build 2008-02-21 11:55:39.000000000 -0800
+++ gcc/config.build 2009-02-06 23:52:13.012576808 -0800
@@ -56,12 +56,19 @@ case $build in
# a broken tar, so we use cpio instead.
build_install_headers_dir=install-headers-cpio
;;
+ alpha64-dec-*vms*)
+ build_xm_file="vms/xm-vms.h vms/xm-vms64.h"
+ build_exeext=.exe
+ build_install_headers_dir=install-headers-cp
+ prefix=/gnu
+ local_prefix=/gnu/local
+ ;;
alpha*-dec-*vms*)
- build_xm_file=alpha/xm-vms.h
+ build_xm_file="vms/xm-vms.h"
build_exeext=.exe
build_install_headers_dir=install-headers-cp
prefix=/gnu
- local_prefix=/gnu
+ local_prefix=/gnu/local
;;
hppa1.0-*-hpux1[01]* | \
hppa*64*-*-hpux11* | \
@@ -111,6 +118,13 @@ case $build in
i386-*-vsta)
# Intel 80386's running VSTa kernel
;;
+ ia64-hp-*vms*)
+ build_xm_file="vms/xm-vms.h vms/xm-vms64.h"
+ build_exeext=.exe
+ build_install_headers_dir=install-headers-cp
+ prefix=/gnu
+ local_prefix=/gnu/local
+ ;;
m68000-hp-hpux* | m68k-hp-hpux*)
# HP 9000 series 300
build_install_headers_dir=install-headers-cpio
--- gcc/config.gcc 2009-01-05 08:11:31.000000000 -0800
+++ gcc/config.gcc 2009-02-06 23:54:33.247725520 -0800
@@ -669,17 +669,21 @@ alpha*-dec-osf[45]*)
;;
alpha64-dec-*vms*)
tm_file="${tm_file} alpha/vms.h alpha/vms64.h"
- xm_file="alpha/xm-vms.h"
- tmake_file="alpha/t-alpha alpha/t-vms alpha/t-vms64 alpha/t-ieee"
- prefix=/gnu
- local_prefix=/gnu
+ xm_file="alpha/xm-vms.h vms/xm-vms64.h"
+ tmake_file="alpha/t-alpha vms/t-vms vms/t-vms64 alpha/t-vms alpha/t-ieee"
+ xmake_file=vms/x-vms
+ exeext=.exe
+ install_headers_dir=install-headers-cp
+ extra_options="${extra_options} vms/vms.opt"
;;
alpha*-dec-*vms*)
tm_file="${tm_file} alpha/vms.h"
- xm_file=alpha/xm-vms.h
- tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
- prefix=/gnu
- local_prefix=/gnu
+ xm_file="alpha/xm-vms.h"
+ tmake_file="alpha/t-alpha vms/t-vms alpha/t-vms alpha/t-ieee"
+ xmake_file=vms/x-vms
+ exeext=.exe
+ install_headers_dir=install-headers-cp
+ extra_options="${extra_options} vms/vms.opt"
;;
arc-*-elf*)
tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file}"
@@ -1405,6 +1409,20 @@ ia64*-*-hpux*)
use_gcc_stdint=wrap
tm_file="${tm_file} hpux-stdint.h"
;;
+ia64-hp-*vms*)
+ tm_file="${tm_file} elfos.h ia64/sysv4.h ia64/elf.h ia64/vms.h ia64/vms64.h"
+ xm_file="vms/xm-vms.h vms/xm-vms64.h"
+ tmake_file="vms/t-vms vms/t-vms64 ia64/t-vms"
+ xmake_file=vms/x-vms
+ target_cpu_default="0"
+ if test x$gas = xyes
+ then
+ target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
+ fi
+ exeext=.exe
+ install_headers_dir=install-headers-cp
+ extra_options="${extra_options} vms/vms.opt"
+ ;;
iq2000*-*-elf*)
tm_file="svr4.h elfos.h newlib-stdint.h iq2000/iq2000.h"
tmake_file=iq2000/t-iq2000
--- gcc/config.host 2008-12-19 06:55:42.000000000 -0800
+++ gcc/config.host 2009-02-06 23:55:30.684970277 -0800
@@ -150,17 +150,21 @@ esac
# Machine-specific settings.
case ${host} in
+ alpha64-dec-*vms*)
+ host_xm_file="vms/xm-vms.h vms/xm-vms64.h"
+ host_xmake_file=vms/x-vms
+ host_exeext=.exe
+ host_can_use_collect2=no
+ prefix=/gnu
+ local_prefix=/gnu/local
+ ;;
alpha*-dec-*vms*)
- host_xm_file=alpha/xm-vms.h
- host_xmake_file="${host_xmake_file} alpha/x-vms"
- extra_programs="ld.exe decc.exe"
+ host_xm_file="vms/xm-vms.h"
+ host_xmake_file=vms/x-vms
host_exeext=.exe
host_can_use_collect2=no
- # This removes the cpu type and manufacturer components and
- # replaces "." with "_" in the operating system version.
- target_noncanonical=`echo $host | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'`
prefix=/gnu
- local_prefix=/gnu
+ local_prefix=/gnu/local
;;
hppa1.0-*-hpux10* | hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
out_host_hook_obj=host-hpux.o
@@ -213,6 +217,14 @@ case ${host} in
out_host_hook_obj="${out_host_hook_obj} host-i386-darwin.o"
host_xmake_file="${host_xmake_file} i386/x-darwin"
;;
+ ia64-hp-*vms*)
+ host_xm_file="vms/xm-vms.h vms/xm-vms64.h"
+ host_xmake_file=vms/x-vms
+ host_exeext=.exe
+ host_can_use_collect2=no
+ prefix=/gnu
+ local_prefix=/gnu/local
+ ;;
powerpc-*-beos*)
host_can_use_collect2=no
;;
--- libgcc/config.host 2009-01-15 20:00:48.000000000 -0800
+++ libgcc/config.host 2009-02-06 23:56:15.905295477 -0800
@@ -186,8 +186,10 @@ alpha*-*-openbsd*)
alpha*-dec-osf[45]*)
;;
alpha64-dec-*vms*)
+ tmake_file="vms/t-vms vms/t-vms64 alpha/t-vms"
;;
alpha*-dec-*vms*)
+ tmake_file="vms/t-vms alpha/t-vms"
;;
arc-*-elf*)
;;
@@ -354,6 +356,9 @@ ia64*-*-linux*)
;;
ia64*-*-hpux*)
;;
+ia64-hp-*vms*)
+ tmake_file="vms/t-vms vms/t-vms64 ia64/t-vms"
+ ;;
iq2000*-*-elf*)
;;
m32r-*-elf*|m32r-*-rtems*)