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

Issue 7400023: fix -Wunused-but-set-variable for gcc-4.6 on x64 (Closed)

Created:
9 years, 5 months ago by wingo
Modified:
9 years, 5 months ago
CC:
v8-dev
Visibility:
Public.

Description

fix -Wunused-but-set-variable for gcc-4.6 on x64 * src/third_party/valgrind/valgrind.h: Update from upstream valgrind r11899, so as to get around some unused value warnings. Also adds support for darwin. This version of valgrind.h differs from the original in that all instances of "unsigned long long int" have been replaced with "uint64_t", as the former is not allowed in ISO C++ 89. See https://bugs.kde.org/show_bug.cgi?id=211926 for the upstream bug report. * src/x64/cpu-x64.cc: * src/builtins.cc: * src/conversions-inl.h: * src/debug.cc: * src/frames.cc: * src/full-codegen.cc: * src/jsregexp.cc: * src/objects.cc: * src/parser.cc: * src/platform-linux.cc: * src/x64/code-stubs-x64.cc: * src/x64/deoptimizer-x64.cc: * src/x64/full-codegen-x64.cc: * src/x64/lithium-codegen-x64.cc: * src/x64/regexp-macro-assembler-x64.cc: * src/x64/stub-cache-x64.cc: Remove a number of assigned but unreferenced variables. * SConstruct (CCTEST_EXTRA_FLAGS): Punt on -Wunused-but-set-variable for the test suite. BUG=1291 TEST=A build and tools/test.py passes. Committed: http://code.google.com/p/v8/source/detail?r=8688

Patch Set 1 #

Total comments: 2

Patch Set 2 : use USE, static_cast<void> #

Patch Set 3 : USE rather than static_cast<void> #

Patch Set 4 : without valgrind changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -39 lines) Patch
M SConstruct View 1 chunk +2 lines, -1 line 0 comments Download
M src/builtins.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/conversions-inl.h View 2 chunks +2 lines, -5 lines 0 comments Download
M src/debug.cc View 4 chunks +6 lines, -8 lines 0 comments Download
M src/frames.cc View 1 chunk +0 lines, -1 line 0 comments Download
M src/full-codegen.cc View 1 chunk +0 lines, -1 line 0 comments Download
M src/jsregexp.cc View 4 chunks +1 line, -7 lines 0 comments Download
M src/objects.cc View 1 chunk +1 line, -2 lines 0 comments Download
M src/parser.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M src/platform-linux.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/x64/deoptimizer-x64.cc View 3 chunks +8 lines, -0 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 chunk +0 lines, -1 line 0 comments Download
M src/x64/regexp-macro-assembler-x64.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M src/x64/stub-cache-x64.cc View 2 chunks +2 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
wingo
9 years, 5 months ago (2011-07-18 17:43:38 UTC) #1
William Hesse
Are the changes to Valgrind a necessary part of this change, to get rid of ...
9 years, 5 months ago (2011-07-19 12:16:43 UTC) #2
William Hesse
Oops - nevermind. I didn't look at the review message. The Valgrind version update is ...
9 years, 5 months ago (2011-07-19 12:20:54 UTC) #3
William Hesse
The last 4 files are also fine, but the Valgrind update is not. Valgrind is ...
9 years, 5 months ago (2011-07-19 12:33:20 UTC) #4
wingo
On 2011/07/19 12:20:54, William Hesse wrote: > The Valgrind version update is fine, except why ...
9 years, 5 months ago (2011-07-19 13:47:32 UTC) #5
wingo
Thanks for the review, and sorry for the multiple mails; I'm not used to rietveld ...
9 years, 5 months ago (2011-07-19 13:52:10 UTC) #6
William Hesse
Let's remove Valgrind and the -wunused-value warnings change, and commit the rest. Then we can ...
9 years, 5 months ago (2011-07-19 14:31:49 UTC) #7
wingo
On 2011/07/19 14:31:49, William Hesse wrote: > Let's remove Valgrind and the -wunused-value warnings change, ...
9 years, 5 months ago (2011-07-19 14:40:37 UTC) #8
William Hesse
LGTM. But what is with the SConstruct flag - is it turning off the warning ...
9 years, 5 months ago (2011-07-20 08:02:05 UTC) #9
William Hesse
9 years, 5 months ago (2011-07-20 08:11:22 UTC) #10
Oh, now I see in the comments why you are turning off the warning - it is just
turned off for the cctests.

On 2011/07/20 08:02:05, William Hesse wrote:
> LGTM.  But what is with the SConstruct flag - is it turning off the warning
> because Valgrind still fails it, or is it turning on the warning?  If it is
> turning off the warning, will it be turned on with the Valgrind commit?
> 
> I'll commit this, and then you can post a CL with the Valgrind changes.
> 
> 
> 
> 
> On 2011/07/19 14:40:37, wingo wrote:
> > On 2011/07/19 14:31:49, William Hesse wrote:
> > > Let's remove Valgrind and the -wunused-value warnings change, and commit
the
> > > rest.  Then we can run trybot runs on Chromium valgrind with the Valgrind
> > > changes.  Have you checked to see if we are already on a different version
> > than
> > > Chromium?  If so, then we can obviously change our version.
> > 
> > It seems that the valgrind.h in base/third_party/valgrind has already been
> > updated, see http://codereview.chromium.org/6327018/.
> > 
> > I have pushed an updated version of this patch without the valgrind changes.

Powered by Google App Engine
This is Rietveld 408576698