Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Issue 115176: Update v8 dtoa.c with latest changes from http://www.netlib.org/fp/dtoa.c... (Closed)

Created:
11 years, 7 months ago by Craig Schlenter
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Update v8 dtoa.c with latest changes from http://www.netlib.org/fp/dtoa.c This should solve gcc 4.4 strict aliasing issues.

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1426 lines, -524 lines) Patch
M src/dtoa-config.c View 1 chunk +3 lines, -0 lines 2 comments Download
M src/third_party/dtoa/dtoa.c View 1 85 chunks +1423 lines, -524 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Craig Schlenter
This should fix http://code.google.com/p/v8/issues/detail?id=266 I have only run the tests on linux with gcc 4.4 ...
11 years, 7 months ago (2009-05-12 15:49:21 UTC) #1
wtc
http://codereview.chromium.org/115176/diff/4/1003 File src/dtoa-config.c (right): http://codereview.chromium.org/115176/diff/4/1003#newcode50 Line 50: !defined(__FreeBSD__) && __FLOAT_WORD_ORDER == __BIG_ENDIAN Strictly speaking, we ...
11 years, 7 months ago (2009-05-12 17:47:46 UTC) #2
Mads Ager (chromium)
This looks a lot like what I did when I tried to update the dtoa ...
11 years, 7 months ago (2009-05-13 08:23:07 UTC) #3
Craig Schlenter
11 years, 7 months ago (2009-05-13 15:39:39 UTC) #4
On 2009/05/13 08:23:07, Mads Ager wrote:
> This looks a lot like what I did when I tried to update the dtoa version used
in
> V8.  
> 
> Unfortunately, gcc 4.2.4 has a problem with this version of dtoa when using
-O2
> or above.  I get the following failure only in release mode when using -O2 or
> above:
> 
> === release number-tostring ===                                      
> Path: mjsunit/number-tostring
> /home/ager/v8/v8/test/mjsunit/mjsunit.js:50: Failure: expected
> <0.00000000000000000010> found <0.0000000000000000000:>

Wow. That's ending in ':' which is one ascii character past 9 so it looks like
it almost got it right and perhaps just forgot to 'carry' that digit over
properly.
 
> Therefore, I cannot put this patch in as is and we will have to compile with
> -fno-strict-aliasing on gcc 4.4 for now.

OK. Unfortunately -fno-strict-aliasing doesn't help for the other crashes I see:

=== release debug-evaluate ===                                  
Path: mjsunit/debug-evaluate
Command: /home/craig/v8/shell --expose-debug-as debug
/home/craig/v8/test/mjsunit/mjsunit.js
/home/craig/v8/test/mjsunit/debug-evaluate.js
--- CRASHED ---
=== release debug-evaluate-locals ===                           
Path: mjsunit/debug-evaluate-locals
Command: /home/craig/v8/shell --expose-debug-as debug
/home/craig/v8/test/mjsunit/mjsunit.js
/home/craig/v8/test/mjsunit/debug-evaluate-locals.js
--- CRASHED ---
=== release debug-evaluate-with ===                                 
Path: mjsunit/debug-evaluate-with
Command: /home/craig/v8/shell --expose-debug-as debug
/home/craig/v8/test/mjsunit/mjsunit.js
/home/craig/v8/test/mjsunit/debug-evaluate-with.js
--- CRASHED ---

etc.

:(

I'll close this for now and perhaps poke at the other crashes sometime to see if
I can figure anything out.

Thank you.

Powered by Google App Engine
This is Rietveld 408576698