Re: CVS commit: src/sys/fs/tmpfs

2011-05-10 Thread Iain Hibbert
On Tue, 10 May 2011, Takahiro Kambe wrote:

 In message 20110509170006.GA15831@marx.bitnet
   on Mon, 9 May 2011 20:00:06 +0300,
   Jukka Ruohonen jruoho...@iki.fi wrote:
  On Mon, May 09, 2011 at 06:50:08PM +0200, Adam Hoka wrote:
  So can we use for (int i = 0; ... ? :p
 lint(1) support them?

Yes, lint(1) knows about it, see lint(7):

  325 variable declaration in for loop

and lint -S (use C9X mode) disables this warning..

iain


Re: CVS commit: src/sys/fs/tmpfs

2011-05-10 Thread Takahiro Kambe
In message alpine.neb.2.00.1105100716550.29...@galant.ukfsn.org
on Tue, 10 May 2011 07:19:51 +0100 (BST),
Iain Hibbert plu...@rya-online.net wrote:
 On Tue, 10 May 2011, Takahiro Kambe wrote:
 
 In message 20110509170006.GA15831@marx.bitnet
  on Mon, 9 May 2011 20:00:06 +0300,
  Jukka Ruohonen jruoho...@iki.fi wrote:
  On Mon, May 09, 2011 at 06:50:08PM +0200, Adam Hoka wrote:
  So can we use for (int i = 0; ... ? :p
 lint(1) support them?
 
 Yes, lint(1) knows about it, see lint(7):
 
   325 variable declaration in for loop
Wow, thanks much!

-- 
Takahiro Kambe t...@back-street.net


Re: CVS commit: src/tests/lib/libc/stdlib

2011-05-10 Thread Cliff Neighbors
Jukka,

#include fenv.h as part of this seems to have caused build.sh to break on arch 
evbmips64-eb 

 In file included from 
 /home/cliff/netbsd/NetBSD-current/usr/src/tests/lib/libc/s
 tdlib/t_strtod.c:38:
 /home/cliff/netbsd/NetBSD-current/build/evbmips64-eb-20110510/dest/usr/include/f
 env.h:29:2: error: #error fenv.h is currently not supported for this 
 architectu
 re
 /home/cliff/netbsd/NetBSD-current/build/evbmips64-eb-20110510/dest/usr/include/f
 env.h:35:26: error: machine/fenv.h: No such file or directory
 nbmkdep: compile failed.
 *** [t_strtod.d] Error code 1
 

do we need #ifdef Honor_FLT_ROUNDS around that include?

 -cliff-




On May 10, 2011, at 8:20 AM, Jukka Ruohonen wrote:

 Module Name:  src
 Committed By: jruoho
 Date: Tue May 10 15:20:19 UTC 2011
 
 Modified Files:
   src/tests/lib/libc/stdlib: t_strtod.c
 
 Log Message:
 Verify that strtod(3) honors the current rounding mode set by fesetround(3).
 Passes on amd64. Prompted by a bug in the GNU C library.
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libc/stdlib/t_strtod.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 



Re: CVS commit: src/tests/lib/libc/stdlib

2011-05-10 Thread Jukka Ruohonen
On Tue, May 10, 2011 at 11:37:16AM -0700, Cliff Neighbors wrote:
  In file included from 
  /home/cliff/netbsd/NetBSD-current/usr/src/tests/lib/libc/s
  tdlib/t_strtod.c:38:
  /home/cliff/netbsd/NetBSD-current/build/evbmips64-eb-20110510/dest/usr/include/f
  env.h:29:2: error: #error fenv.h is currently not supported for this 
  architectu
  re
  /home/cliff/netbsd/NetBSD-current/build/evbmips64-eb-20110510/dest/usr/include/f
  env.h:35:26: error: machine/fenv.h: No such file or directory
  nbmkdep: compile failed.
  *** [t_strtod.d] Error code 1
  
 
 do we need #ifdef Honor_FLT_ROUNDS around that include?

Hmm, I guess so. Or #ifndef NO_FENV_H? I am not familiar with the
conditional compilation of gdtoa.

- Jukka.