Message-ID: From: "Andris Pavenis" To: "Gurunandan R. Bhat" , Alexey Yakovlev Date: Fri, 10 Jul 1998 21:28:50 +0300 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT 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> Precedence: bulk Date sent: Mon, 06 Jul 1998 15:24:20 +0600 From: Alexey Yakovlev 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