xm-vms.h (HOST_LONG_FORMAT, [...]): Define when long pointers are used.
authorTristan Gingold <gingold@adacore.com>
Wed, 4 Jan 2012 15:45:29 +0000 (15:45 +0000)
committerTristan Gingold <gingold@gcc.gnu.org>
Wed, 4 Jan 2012 15:45:29 +0000 (15:45 +0000)
2012-01-04  Tristan Gingold  <gingold@adacore.com>

* config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
when long pointers are used.
* config.build (*-*-*vms*): Handle all OpenVMS targets.
(alpha64-dec-*vms*, alpha*-dec-*vms*)
(ia64-hp-*vms*): Remove.
* config/vms/xm-vms64.h: Delete.

From-SVN: r182879

gcc/ChangeLog
gcc/config.build
gcc/config/vms/xm-vms.h
gcc/config/vms/xm-vms64.h [deleted file]

index 961f895fe8254640bc032d02510727ca270bfa91..d5cc90358c0a4b2adcc155a284b2b3e1908b49a5 100644 (file)
@@ -1,3 +1,12 @@
+2012-01-04  Tristan Gingold  <gingold@adacore.com>
+
+       * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
+       when long pointers are used.
+       * config.build (*-*-*vms*): Handle all OpenVMS targets.
+       (alpha64-dec-*vms*, alpha*-dec-*vms*)
+       (ia64-hp-*vms*): Remove.
+       * config/vms/xm-vms64.h: Delete.
+
 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
 
        * opts.c (finish_options): Remove duplicate sorry.
index abb27d7f6c1199771b56d40edd67ad8d6cbea72d..26809b61225891ae97672ea9823149bbdb045f9f 100644 (file)
@@ -52,20 +52,6 @@ build_file_translate=
 
 # System-specific settings.
 case $build in
-  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="vms/xm-vms.h"
-    build_exeext=.exe
-    build_install_headers_dir=install-headers-cp
-    prefix=/gnu
-    local_prefix=/gnu/local
-    ;;
   hppa1.0-*-hpux1[01]* | \
   hppa*64*-*-hpux11* | \
   hppa1.1-*-hpux11* | \
@@ -114,13 +100,6 @@ 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
@@ -129,5 +108,11 @@ case $build in
     # All other System V variants.
     build_install_headers_dir=install-headers-cpio
     ;;
+  *-*-*vms*)
+    # All OpenVMS targets.
+    build_xm_file="vms/xm-vms.h"
+    build_exeext=.exe
+    build_install_headers_dir=install-headers-cp
+    ;;
 esac
 
index 9685da7c114980ed41f063cfb29adbc63df6e3df..631724e92ee01f6ef608c2803ff5bc10b3ece769 100644 (file)
@@ -53,4 +53,12 @@ do                                                         \
        }                                                  \
   } while (0)
 
+/* If 64 bit pointers are used, use 64 bit specifier.  */
+
+#if (defined (__INITIAL_POINTER_SIZE) && __INITIAL_POINTER_SIZE == 64) \
+  || defined (__LONG_POINTERS)
+#define HOST_LONG_FORMAT "ll"
+#define HOST_PTR_PRINTF "%llp"
+#endif
+
 #define STANDARD_STARTFILE_PREFIX "/gnu/lib/"
diff --git a/gcc/config/vms/xm-vms64.h b/gcc/config/vms/xm-vms64.h
deleted file mode 100644 (file)
index 9e77f89..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-/* Configuration for GCC for hosting on 64bit VMS
-   using a Unix style C library.
-   Copyright (C) 2009
-   Free Software Foundation, Inc.
-
-This file is part of GCC.
-
-GCC 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 3, or (at your option)
-any later version.
-
-GCC 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 GCC; see the file COPYING3.  If not see
-<http://www.gnu.org/licenses/>.  */
-
-#define HOST_LONG_FORMAT "ll"
-#define HOST_PTR_PRINTF "%llp"