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

Issue 2720453003: Hack analysis macros for Windows to avoid compiler bug (Closed)

Created:
3 years, 10 months ago by brucedawson
Modified:
3 years, 9 months ago
Reviewers:
Kevin M, Wez
CC:
chromium-reviews, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Hack analysis macros for Windows to avoid compiler bug In crrev.com/2669213005 the static code analysis macros that give the compilers hints about what they can assume were updated to simplify them. Unfortunately this broke VC++'s /analyze - this bug has the details: https://connect.microsoft.com/VisualStudio/feedback/details/3124774 It's not clear if it's worth adding back the complexity for /analyze because its value has been marginal lately, so this change just skips calling AnalysisAssumeTrue in order to get the /analyze builds running again: https://build.chromium.org/p/chromium.fyi/builders/Chromium%20Windows%20Analyze/ BUG=687243 R=kmarshall@chromium.org

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M base/logging.h View 1 chunk +3 lines, -1 line 1 comment Download

Messages

Total messages: 10 (5 generated)
Wez
https://codereview.chromium.org/2720453003/diff/1/base/logging.h File base/logging.h (right): https://codereview.chromium.org/2720453003/diff/1/base/logging.h#newcode324 base/logging.h:324: // https://connect.microsoft.com/VisualStudio/feedback/details/3124774 This is the same as the no-analysis ...
3 years, 10 months ago (2017-02-25 00:25:47 UTC) #4
brucedawson
On 2017/02/25 00:25:47, Wez wrote: > https://codereview.chromium.org/2720453003/diff/1/base/logging.h > File base/logging.h (right): > > https://codereview.chromium.org/2720453003/diff/1/base/logging.h#newcode324 > ...
3 years, 10 months ago (2017-02-25 00:26:40 UTC) #5
brucedawson
On 2017/02/25 00:26:40, brucedawson wrote: > On 2017/02/25 00:25:47, Wez wrote: > > https://codereview.chromium.org/2720453003/diff/1/base/logging.h > ...
3 years, 9 months ago (2017-02-27 18:58:39 UTC) #8
brucedawson
Also, I found out what types cause the issue - bit fields. A universal reference ...
3 years, 9 months ago (2017-02-27 19:59:05 UTC) #9
brucedawson
3 years, 9 months ago (2017-02-27 20:55:08 UTC) #10
I think that the technique used does not actually work - the same code fails on
clang and VC++. Details in the bug.

Powered by Google App Engine
This is Rietveld 408576698