delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2008/04/08/17:11:05

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Recipient: djgpp-workers AT delorie DOT com
Message-ID: <47FBCF0E.8090208@iki.fi>
Date: Tue, 08 Apr 2008 23:01:18 +0300
From: Andris Pavenis <andris DOT pavenis AT iki DOT fi>
User-Agent: Thunderbird 2.0.0.12 (X11/20080226)
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: gcc-4.3.0
Reply-To: djgpp-workers AT delorie DOT com

This is a multi-part message in MIME format.
--------------070407090706030207040607
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Here is link to cross-compiler SRPM (tested on Fedora 8 x86_64 only):

http://ap1.pp.fi/djgpp/gcc/4.3.0/rpm/djcross-gcc-4.3.0-4ap.src.rpm

One could try to build current CVS version of djdev with it. Attached 2 completely
untested patches to fix some strict-aliasing warning related problems. There are
more warnings treated as errors later, but I don't have more time now.

About native builds for DJGPP:

gcc-4.3.0 bootstraps now OK for DJGPP v2.03r2, but PERL scripts for generating binary
packages are still broken.

For 2.04CVS the main problem is broken port of bash-2.05b. It now seems to be bit
surprising that this problem did not appear earlier.

Andris


--------------070407090706030207040607
Content-Type: text/x-patch;
 name="libc_dos_dir.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="libc_dos_dir.diff"

Repository : :pserver:andris AT cvs DOT delorie DOT com:/cvs/djgpp
Module     : djgpp/src/libc/dos/dir
Working dir: ~/Build/rpm-root/BUILD/djgpp/src/libc/dos/dir/



In directory .:
              Up-To-Date  1.1         .cvsignore
              Modified    1.5         findfirs.c
              Unknown                 findfirs.c.new
              Unknown                 findfirs.s
              Up-To-Date  1.4         findfirs.txh
              Modified    1.4         findnext.c
              Unknown                 findnext.s
              Up-To-Date  1.3         findnext.txh
              Up-To-Date  1.1         fnmerge.c
              Unknown                 fnmerge.s
              Up-To-Date  1.5         fnsplit.c
              Unknown                 fnsplit.s
              Up-To-Date  1.3         fnsplit.txh
              Up-To-Date  1.4         ftreewlk.c
              Unknown                 ftreewlk.s
              Up-To-Date  1.7         ftreewlk.txh
              Up-To-Date  1.3         ftw.c
              Unknown                 ftw.s
              Up-To-Date  1.4         ftw.txh
              Up-To-Date  1.1         getdisk.c
              Unknown                 getdisk.s
              Up-To-Date  1.3         getdisk.txh
              Up-To-Date  1.1         makefile
              Up-To-Date  1.1         setdisk.c
              Unknown                 setdisk.s
              Up-To-Date  1.4         setdisk.txh
              Up-To-Date  1.8         srchpath.c
              Unknown                 srchpath.s
              Up-To-Date  1.5         srchpath.txh

--------------------- End ---------------------
-- last cmd: cvs -f diff -u -N --

--------------070407090706030207040607
Content-Type: text/x-patch;
 name="lstat.c.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="lstat.c.diff"

Index: lstat.c
===================================================================
RCS file: /cvs/djgpp/djgpp/src/libc/posix/sys/stat/lstat.c,v
retrieving revision 1.13
diff -u -r1.13 lstat.c
--- lstat.c	11 Dec 2007 07:27:39 -0000	1.13
+++ lstat.c	8 Apr 2008 19:45:21 -0000
@@ -801,10 +801,10 @@
   if ( ! strcmp(ff_blk.lfn_magic,"LFN32") )
     {
       unsigned xtime;
-      xtime = *(unsigned *)(void *)&ff_blk.lfn_ctime;
+      xtime = ff_blk.lfn_ctime | (((unsigned)ff_blk.lfn_cdate) << 16);
       if(xtime)			/* May be zero if file written w/o lfn active */
         statbuf->st_ctime = _file_time_stamp(xtime);
-      xtime = *(unsigned *)(void *)&ff_blk.lfn_atime;
+      xtime = ff_blk.lfn_atime | (((unsigned)ff_blk.lfn_adate) << 16);
       if(xtime > dos_ftime)	/* Accessed time is date only, no time */
         statbuf->st_atime = _file_time_stamp(xtime);
     }

--------------070407090706030207040607--

- Raw text -


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