vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.

2012-03-06  Tristan Gingold  <gingold@adacore.com>

	* config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
	* config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.

From-SVN: r184983
This commit is contained in:
Tristan Gingold 2012-03-06 10:26:24 +00:00 committed by Tristan Gingold
parent a2ddaaf589
commit 17a27c59df
3 changed files with 19 additions and 13 deletions

View File

@ -1,3 +1,8 @@
2012-03-06 Tristan Gingold <gingold@adacore.com>
* config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
* config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
2012-03-06 Tristan Gingold <gingold@adacore.com>
* config/vms/t-vmsnative (version): Define.

View File

@ -13,10 +13,10 @@
# - map lines consist in an identifier optionnaly followed by at most 2
# space-separated flags.
# Flags are:
# FLOAT: will be prefixed by 'x'
# FLOAT: will be prefixed by 't'/'g'/'d'
# 64: There is a 64-bit variant
# BSD44: name will be prefixed by __bsd44__
# PRNTF: a 't' prefix will be added.
# LDBL: a 'x' prefix will be added if 128 bit long doubles are enabled.
# MALLOC: malloc related function.
#
# Keep entries alpha-sorted - this is enforced by the awk script.
@ -75,7 +75,7 @@ fgetc
fgets 64
floor FLOAT
fopen
fprintf FLOAT PRNTF
fprintf FLOAT LDBL
fputc
fputs
fread
@ -132,7 +132,7 @@ pclose
perror
popen
pow FLOAT
printf FLOAT PRNTF
printf FLOAT LDBL
putc
putchar
putenv
@ -157,9 +157,9 @@ setvbuf
signal
sigsetmask
sin FLOAT
snprintf FLOAT PRNTF
snprintf FLOAT LDBL
socket
sprintf FLOAT PRNTF
sprintf FLOAT LDBL
sqrt FLOAT
stat
strcasecmp
@ -191,10 +191,10 @@ umask
ungetc
unlink
utime
vfprintf FLOAT PRNTF
vprintf FLOAT PRNTF
vsnprintf FLOAT PRNTF
vsprintf FLOAT PRNTF
vfprintf FLOAT LDBL
vprintf FLOAT LDBL
vsnprintf FLOAT LDBL
vsprintf FLOAT LDBL
wait
waitpid
wcswidth

View File

@ -42,8 +42,9 @@ along with GCC; see the file COPYING3. If not see
rule. */
#define VMS_CRTL_BSD44 (1 << 3)
/* Prepend x before the name for printf like functions. */
#define VMS_CRTL_PRNTF (1 << 4)
/* Prepend x before the name for if 128 bit long doubles are enabled. This
concern mostly 'printf'-like functions. */
#define VMS_CRTL_LDBL (1 << 4)
/* Prepend ga_ for global data. */
#define VMS_CRTL_GLOBAL (1 << 5)
@ -135,7 +136,7 @@ vms_patch_builtins (void)
if (n->flags & VMS_CRTL_FLOAT)
res[rlen++] = 't';
if (n->flags & VMS_CRTL_PRNTF)
if (n->flags & VMS_CRTL_LDBL)
res[rlen++] = 'x';
nlen = strlen (n->name);