lkml.org 
[lkml]   [1998]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: floating-point abuse in 2.1.113
On Tue, 4 Aug 1998, Stefan Traby wrote:

> Hmmm, another point of view:
> "-msoft-float" does not find these types of typos:
>
> static int eb64p_indices[] = {0,0,1.2};
> ^^^^
>
> while intelligent egrepping does... (arch/alpha/setup.c)
> (already reported, unfixed.)
> So grepping can be safely used for casts too.
> ;-}

Ok, but have you actually done a grep over the entire linux-2.1.11x
kernel sources looking for f.p. constants? I have, and there are like
99.99% false hits from all those version numbers included in the
source code, so finding the real offenders will take some effort.
In contrast, adding -msoft-float to CFLAGS catches the dangerous
stuff (f.p. instructions) with zero cost for the kernel and minimal
effort for developers.

/Mikael

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.020 / U:1.624 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site