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

Issue 22381002: Fixes to get Dart VM compiling on Ubuntu 13.04, Debian Wheezy. (Closed)

Created:
7 years, 4 months ago by Chris Bracken
Modified:
7 years, 4 months ago
Reviewers:
srdjan, siva, Ivan Posva
CC:
reviews_dartlang.org, Vyacheslav Egorov (Google)
Visibility:
Public.

Description

Fixes to get Dart VM compiling on Ubuntu 13.04, Debian Wheezy. * Convince gcc 4.7.x that len is initialized before use in callers of ReadFileFully() * Cast RawObject* to intptr_t to avoid strict-aliasing error on gcc 4.7.x * Replace two calls to strerror_r() with strerror() on Linux. When _GNU_SOURCE is defined to be non-zero (as it is on Dart Linux builds), strerror_r() is defined to return a char*, which is the correct error string to use. When _GNU_SOURCE is zero, the XSI-compliant definition is used and the error message is returned in the char* param. Surrounding error logging uses strerror() which solves the problem. * Replace int literals with char literals in test string definition. * co19 math/tan_A01_t01 passes on Ubuntu 13.04. Original issues: https://code.google.com/p/dart/issues/detail?id=12085 https://code.google.com/p/dart/issues/detail?id=8807 R=asiva@google.com Committed: https://code.google.com/p/dart/source/detail?r=25890 Committed: https://code.google.com/p/dart/source/detail?r=25929

Patch Set 1 #

Patch Set 2 : Convince gcc that len is always initialized before use. #

Total comments: 4

Patch Set 3 : Alternative type-punning fix #

Total comments: 3

Patch Set 4 : Use array syntax to index into native fields #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M runtime/vm/object.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
Chris Bracken
7 years, 4 months ago (2013-08-06 08:06:01 UTC) #1
siva
https://codereview.chromium.org/22381002/diff/4001/runtime/bin/dartutils.cc File runtime/bin/dartutils.cc (right): https://codereview.chromium.org/22381002/diff/4001/runtime/bin/dartutils.cc#newcode373 runtime/bin/dartutils.cc:373: const uint8_t* text_buffer = NULL; Not sure I understand ...
7 years, 4 months ago (2013-08-06 22:53:43 UTC) #2
Chris Bracken
https://codereview.chromium.org/22381002/diff/4001/runtime/bin/dartutils.cc File runtime/bin/dartutils.cc (right): https://codereview.chromium.org/22381002/diff/4001/runtime/bin/dartutils.cc#newcode373 runtime/bin/dartutils.cc:373: const uint8_t* text_buffer = NULL; On 2013/08/06 22:53:43, siva ...
7 years, 4 months ago (2013-08-07 06:12:57 UTC) #3
siva
lgtm
7 years, 4 months ago (2013-08-07 15:59:26 UTC) #4
Chris Bracken
Committed patchset #3 manually as r25890 (presubmit successful).
7 years, 4 months ago (2013-08-07 17:28:15 UTC) #5
Ivan Posva
Please fix the multi-threading issues. -Ivan https://codereview.chromium.org/22381002/diff/14001/runtime/bin/file_linux.cc File runtime/bin/file_linux.cc (right): https://codereview.chromium.org/22381002/diff/14001/runtime/bin/file_linux.cc#newcode50 runtime/bin/file_linux.cc:50: Log::PrintErr("%s\n", strerror(errno)); strerror ...
7 years, 4 months ago (2013-08-07 18:33:44 UTC) #6
srdjan
https://codereview.chromium.org/22381002/diff/14001/runtime/vm/object.h File runtime/vm/object.h (right): https://codereview.chromium.org/22381002/diff/14001/runtime/vm/object.h#newcode5991 runtime/vm/object.h:5991: return *(reinterpret_cast<intptr_t*>(native_fields->ptr()->data_) + index); From Slava: nit: you can ...
7 years, 4 months ago (2013-08-07 18:36:43 UTC) #7
Chris Bracken
On 2013/08/07 18:33:44, Ivan Posva wrote: > Please fix the multi-threading issues. > > -Ivan ...
7 years, 4 months ago (2013-08-07 18:53:43 UTC) #8
Chris Bracken
On 2013/08/07 18:36:43, srdjan wrote: > https://codereview.chromium.org/22381002/diff/14001/runtime/vm/object.h > File runtime/vm/object.h (right): > > https://codereview.chromium.org/22381002/diff/14001/runtime/vm/object.h#newcode5991 > ...
7 years, 4 months ago (2013-08-08 02:14:29 UTC) #9
Chris Bracken
7 years, 4 months ago (2013-08-08 02:14:44 UTC) #10
Chris Bracken
7 years, 4 months ago (2013-08-08 16:40:50 UTC) #11
Message was sent while issue was closed.
Committed patchset #4 manually as r25929 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698