In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/913cec4246caa89e35bb997c168e7ea2dfcadc4f?hp=30dc90f1923c08aae65b60f713ac12490a716e10>

- Log -----------------------------------------------------------------
commit 913cec4246caa89e35bb997c168e7ea2dfcadc4f
Author: Craig A. Berry <[email protected]>
Date:   Thu Jul 9 18:06:00 2015 -0500

    Remove obsolete __GNUC__isms under vms/.
    
    There used to be some version of GCC 2.x that ran only on VAX that
    was capable of building Perl.  But that was 18-20 years ago and
    there have been no recent reports of building Perl with gcc on VMS.
    
    If and when a modern version of GCC is ported to VMS (and the
    underpinnings are reportedly there as part of GNAT Pro Ada, just
    nothing complete or publicly available), these ancient workarounds
    are at least as likely to do harm as good.  So get rid of them.

M       vms/vms.c
M       vms/vmsish.h

commit a3b5f9fb00dafcb11d1766baaec76abc90f9fd06
Author: Craig A. Berry <[email protected]>
Date:   Thu Jul 9 17:31:40 2015 -0500

    Don't create zero-length filename on VMS in Typemap.t
    
    It turns out it's quite legal but then causes other mayhem, such
    as confusing things that are looking for the "." directory (because
    there is no such thing as a file without an extension so passing
    an empty string to fopen creates ".;1" on disk).
    
    Also make this test clean up its test files.

M       ext/XS-Typemap/t/Typemap.t
-----------------------------------------------------------------------

Summary of changes:
 ext/XS-Typemap/t/Typemap.t |  5 ++++-
 vms/vms.c                  | 18 ------------------
 vms/vmsish.h               |  5 -----
 3 files changed, 4 insertions(+), 24 deletions(-)

diff --git a/ext/XS-Typemap/t/Typemap.t b/ext/XS-Typemap/t/Typemap.t
index 49ac479..46ab20f 100644
--- a/ext/XS-Typemap/t/Typemap.t
+++ b/ext/XS-Typemap/t/Typemap.t
@@ -361,6 +361,8 @@ note("T_STDIO");
 
 # open a file in XS for write
 my $testfile= "stdio.tmp";
+# not everything below cleans up
+END { 1 while unlink $testfile; }
 my $fh = T_STDIO_open( $testfile );
 ok( $fh );
 
@@ -402,7 +404,8 @@ ok( print($fh "first line\n"), 'can print to return io in 
arg');
 ok( close($fh), 'can close return io in arg');
 $fh = "FOO";
 #now with a bad file name to make sure $fh is written to on failure
-T_STDIO_open_ret_in_arg( "", $fh);
+my $badfile = $^O eq 'VMS' ? '?' : '';
+T_STDIO_open_ret_in_arg( $badfile, $fh);
 ok( !defined$fh, 'return io in arg open failed successfully');
 
 # T_INOUT
diff --git a/vms/vms.c b/vms/vms.c
index 7afe1af..627044e 100644
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -118,18 +118,6 @@ static int (*decw_term_port)
     void * char_buffer,
     void * char_change_buffer) = 0;
 
-/* gcc's header files don't #define direct access macros
- * corresponding to VAXC's variant structs */
-#ifdef __GNUC__
-#  define uic$v_format uic$r_uic_form.uic$v_format
-#  define uic$v_group uic$r_uic_form.uic$v_group
-#  define uic$v_member uic$r_uic_form.uic$v_member
-#  define prv$v_bypass  prv$r_prvdef_bits0.prv$v_bypass
-#  define prv$v_grpprv  prv$r_prvdef_bits0.prv$v_grpprv
-#  define prv$v_readall prv$r_prvdef_bits0.prv$v_readall
-#  define prv$v_sysprv  prv$r_prvdef_bits0.prv$v_sysprv
-#endif
-
 #if defined(NEED_AN_H_ERRNO)
 dEXT int h_errno;
 #endif
@@ -12395,13 +12383,7 @@ Perl_rmscopy(pTHX_ const char *spec_in, const char 
*spec_out, int preserve_dates
     if (preserve_dates & 2) {
       /* sys$close() will process xabrdt, not xabdat */
       xabrdt = cc$rms_xabrdt;
-#ifndef __GNUC__
       xabrdt.xab$q_rdt = xabdat.xab$q_rdt;
-#else
-      /* gcc doesn't like the assignment, since its prototype for xab$q_rdt
-       * is unsigned long[2], while DECC & VAXC use a struct */
-      memcpy(xabrdt.xab$q_rdt,xabdat.xab$q_rdt,sizeof xabrdt.xab$q_rdt);
-#endif
       fab_out.fab$l_xab = (void *) &xabrdt;
     }
 
diff --git a/vms/vmsish.h b/vms/vmsish.h
index 52b7c5c..b7aea85 100644
--- a/vms/vmsish.h
+++ b/vms/vmsish.h
@@ -42,11 +42,6 @@
 #define _tolower(c) (((c) < 'A' || (c) > 'Z') ? (c) : (c) | 040)
 
 /* Assorted things to look like Unix */
-#ifdef __GNUC__
-#ifndef _IOLBF /* gcc's stdio.h doesn't define this */
-#define _IOLBF 1
-#endif
-#endif
 #include <processes.h> /* for vfork() */
 #include <unixio.h>
 #include <unixlib.h>

--
Perl5 Master Repository

Reply via email to