delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2008/04/08/21:26:47

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
Date: Tue, 8 Apr 2008 21:26:29 -0400
Message-Id: <200804090126.m391QTgA009970@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp-workers AT delorie DOT com
In-reply-to: <47FBCF0E.8090208@iki.fi> (message from Andris Pavenis on Tue, 08
Apr 2008 23:01:18 +0300)
Subject: Re: gcc-4.3.0
References: <47FBCF0E DOT 8090208 AT iki DOT fi>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> 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.

Well, one attached.  The other isn't a patch.  The patch one is OK though.

> --------------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