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

Issue 206024: A quick build fix for gcc 4.3 (and later)... (Closed)

Created:
11 years, 3 months ago by Hironori Bono
Modified:
9 years, 7 months ago
Reviewers:
Mark Mentovai, maf, Craig
CC:
chromium-reviews_googlegroups.com, John Grabowski, brettw, pam+watch_chromium.org
Base URL:
svn://chrome-svn.corp.google.com/chrome/trunk/src/
Visibility:
Public.

Description

A build fix for gcc 4.3 (and later). Comparing a function with NULL has been prohibited since gcc 4.3 and produces a compilation error. This change encloses your code which compares a function with NULL with "#if defined(OS_MACOSX) && MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5" and "#endif". BUG=none TEST=build chromium with gcc 4.3 (and later) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=26449

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 4

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -24 lines) Patch
M base/debug_util_posix.cc View 1 2 3 4 2 chunks +34 lines, -24 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Hironori Bono
11 years, 3 months ago (2009-09-16 05:41:29 UTC) #1
Mark Mentovai
http://codereview.chromium.org/206024/diff/2001/3001 File base/debug_util_posix.cc (right): http://codereview.chromium.org/206024/diff/2001/3001#newcode119 Line 119: #if defined(SUPPORT_MACOSX_10_4) What is SUPPORT_MACOSX_10_4 supposed to control? ...
11 years, 3 months ago (2009-09-16 06:22:45 UTC) #2
Hironori Bono
http://codereview.chromium.org/206024/diff/2001/3001 File base/debug_util_posix.cc (right): http://codereview.chromium.org/206024/diff/2001/3001#newcode119 Line 119: #if defined(SUPPORT_MACOSX_10_4) On 2009/09/16 06:22:45, Mark Mentovai wrote: ...
11 years, 3 months ago (2009-09-16 07:30:53 UTC) #3
Craig
I have landed an alternative fix for this in r26431 (see http://codereview.chromium.org/206026/show) that squashes the ...
11 years, 3 months ago (2009-09-17 05:57:08 UTC) #4
Mark Mentovai
LGTM with this change http://codereview.chromium.org/206024/diff/6003/8001 File base/debug_util_posix.cc (right): http://codereview.chromium.org/206024/diff/6003/8001#newcode123 Line 123: #if (defined(OS_MACOSX) && \ ...
11 years, 3 months ago (2009-09-17 06:01:57 UTC) #5
Mark Mentovai
http://codereview.chromium.org/206024/diff/6003/8001 File base/debug_util_posix.cc (right): http://codereview.chromium.org/206024/diff/6003/8001#newcode125 Line 125: if (backtrace == NULL) { This can just ...
11 years, 3 months ago (2009-09-17 06:03:31 UTC) #6
Mark Mentovai
http://codereview.chromium.org/206024/diff/6003/8001 File base/debug_util_posix.cc (right): http://codereview.chromium.org/206024/diff/6003/8001#newcode125 Line 125: if (backtrace == NULL) { Obviously, I meant: ...
11 years, 3 months ago (2009-09-17 06:11:16 UTC) #7
Craig
Mark: I've reverted my change btw. - the tree broke for unrelated reasons and reverting ...
11 years, 3 months ago (2009-09-17 06:13:07 UTC) #8
Hironori Bono
mark, Thank you for your reviews and comments. I will land the updated change when ...
11 years, 3 months ago (2009-09-17 09:21:33 UTC) #9
Craig
On 2009/09/17 09:21:33, hbono wrote: > I will land the updated change when the tree ...
11 years, 3 months ago (2009-09-17 16:19:07 UTC) #10
maf
http://codereview.chromium.org/206024/diff/6003/8001 File base/debug_util_posix.cc (right): http://codereview.chromium.org/206024/diff/6003/8001#newcode125 Line 125: if (backtrace == NULL) { No, you must ...
11 years, 3 months ago (2009-09-17 16:25:11 UTC) #11
maf
You must explicitly compare to NULL when checking for availability of a weak imported function. ...
11 years, 3 months ago (2009-09-17 16:28:18 UTC) #12
Craig
On 2009/09/17 16:28:18, maf wrote: > You must explicitly compare to NULL when checking for ...
11 years, 3 months ago (2009-09-17 16:42:04 UTC) #13
Mark Mentovai
11 years, 3 months ago (2009-09-17 17:08:10 UTC) #14
maf@google.com wrote:
> http://codereview.chromium.org/206024/diff/6003/8001#newcode125
> Line 125: if (backtrace =3D=3D NULL) {
> No, you must explicitly compare to NULL or it won't work. =A0The compiler
> has a special case for this and we have to hit it.

What is this, CFM?  That's certainly not true for Mach-O.

Powered by Google App Engine
This is Rietveld 408576698