diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/vms/vms-crtlmap.map | 20 | ||||
-rw-r--r-- | gcc/config/vms/vms.c | 7 |
3 files changed, 19 insertions, 13 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f541b9e..d9cbb68 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 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. * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove. diff --git a/gcc/config/vms/vms-crtlmap.map b/gcc/config/vms/vms-crtlmap.map index 8df8767..30a15c0 100644 --- a/gcc/config/vms/vms-crtlmap.map +++ b/gcc/config/vms/vms-crtlmap.map @@ -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 diff --git a/gcc/config/vms/vms.c b/gcc/config/vms/vms.c index 95cc5de..6418536 100644 --- a/gcc/config/vms/vms.c +++ b/gcc/config/vms/vms.c @@ -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); |