diff options
author | gingold <gingold@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-01-04 15:45:29 +0000 |
---|---|---|
committer | gingold <gingold@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-01-04 15:45:29 +0000 |
commit | ceb6185fdeaf68985499ced35e4d17d3d96b69b4 (patch) | |
tree | 5726dbeae9b7f509b3d9b0b698d8c1a1fae53a60 /gcc/config | |
parent | d449d792cc0c0ede5af13bddcb210314b7097cab (diff) | |
download | gcc-ceb6185fdeaf68985499ced35e4d17d3d96b69b4.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182879 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/vms/xm-vms.h | 8 | ||||
-rw-r--r-- | gcc/config/vms/xm-vms64.h | 23 |
2 files changed, 8 insertions, 23 deletions
diff --git a/gcc/config/vms/xm-vms.h b/gcc/config/vms/xm-vms.h index 9685da7c114..631724e92ee 100644 --- a/gcc/config/vms/xm-vms.h +++ b/gcc/config/vms/xm-vms.h @@ -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 index 9e77f890aaa..00000000000 --- a/gcc/config/vms/xm-vms64.h +++ /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" |