www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/07/10/14:30:54

Message-ID: <B0000034903@stargate.astr.lu.lv>
From: "Andris Pavenis" <pavenis AT lanet DOT lv>
To: "Gurunandan R. Bhat" <grbhat AT unigoa DOT ernet DOT in>,
Alexey Yakovlev <jack AT catalysis DOT nsk DOT su>
Date: Fri, 10 Jul 1998 21:28:50 +0300
MIME-Version: 1.0
Subject: Re: Inconsistencies between g77 v0.5.23 and v0.5.19
CC: djgpp-workers AT delorie DOT com, fortran AT gnu DOT org
In-reply-to: <35A097C4.C304E6FA@catalysis.nsk.su>

Date sent:      	Mon, 06 Jul 1998 15:24:20 +0600
From:           	Alexey Yakovlev <jack AT catalysis DOT nsk DOT su>
Subject:        	Re: Inconsistencies between g77 v0.5.23 and v0.5.19

> Hi all.
>  The I/O library in libg2c of g77 v0.5.23 was compiled incorrectly.
> It opens an "unformatted" file as text which causes CR->CRLF conversion
> on output. The runtime library of g77 under DJGPP has to be compiled
> with NON_ANSI_RW_MODES undefined. Perhaps, one has to rebuild g77-0.5.23
> for DJGPP or, at least, libg2c.a.
> 

I think it should be treated as bug in f/runtime/configure.in
as DJGPP defines both unix and __MSDOS__ 

The following patch for f/runtime/configure.in fixes problem for DJGPP
port of g77. (and as I hope doesn't break anything).

Andris

pavenis AT lanet DOT lv

---------------------------------------------------------------------------------------
*** configure.in~	Sat Apr 25 16:22:18 1998
--- configure.in	Fri Jul 10 20:26:34 1998
***************
*** 210,218 ****
  fi
  
  # define NON_ANSI_RW_MODES on unix (can't hurt)
  AC_MSG_CHECKING(NON_ANSI_RW_MODES)
  AC_EGREP_CPP(yes,
! [#ifdef unix
    yes
  #endif
  #ifdef __unix
--- 210,222 ----
  fi
  
  # define NON_ANSI_RW_MODES on unix (can't hurt)
+ # also avoid this define for DJGPP (it defines both __MSDOS__ and unix)
  AC_MSG_CHECKING(NON_ANSI_RW_MODES)
  AC_EGREP_CPP(yes,
! [#ifdef __MSDOS__
!   no
! #else
! #ifdef unix
    yes
  #endif
  #ifdef __unix
***************
*** 220,225 ****
--- 224,230 ----
  #endif
  #ifdef __unix__
    yes
+ #endif
  #endif
  ], is_unix=yes, is_unix=no)
  if test $g77_cv_sys_cygwin32 = yes || test $g77_cv_sys_mingw32 = yes; then

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019