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

Issue 2937433003: Make operator new/delete symbols have default visibility (Closed)

Created:
3 years, 6 months ago by Tom Anderson
Modified:
3 years, 6 months ago
Target Ref:
refs/heads/master
Project:
buildtools
Visibility:
Public.

Description

Make operator new/delete symbols have default visibility This CL changes the visibility of operator new and operator delete to default so that the weak symbols exported by libc++ don't interfere with the strong symbols exported by Chromium by making them hidden too. BUG=732548 R=thakis@chromium.org Committed: 9a65473a7e8f39f04fd134e69470ab1b48514b0e

Patch Set 1 #

Total comments: 2

Patch Set 2 : update comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -0 lines) Patch
M third_party/libc++/BUILD.gn View 1 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (5 generated)
Tom Anderson
thakis ptal
3 years, 6 months ago (2017-06-13 02:56:25 UTC) #1
Tom Anderson
3 years, 6 months ago (2017-06-13 18:12:32 UTC) #2
(unused - use chromium)
This scares me a bit (for now both libclearkey.so or some other .so and chrome ...
3 years, 6 months ago (2017-06-13 20:49:37 UTC) #4
Tom Anderson
On 2017/06/13 20:49:37, (unused - use chromium) wrote: > This scares me a bit (for ...
3 years, 6 months ago (2017-06-13 22:30:17 UTC) #5
Tom Anderson
On 2017/06/13 22:30:17, Tom Anderson wrote: > Maybe one thing we can try doing in ...
3 years, 6 months ago (2017-06-14 20:00:22 UTC) #6
Tom Anderson
Oh 1 more thing: C++17 has additional new/delete symbols that have alignment constraints. The allocator ...
3 years, 6 months ago (2017-06-14 20:01:43 UTC) #7
Nico
On 2017/06/13 22:30:17, Tom Anderson wrote: > On 2017/06/13 20:49:37, (unused - use chromium) wrote: ...
3 years, 6 months ago (2017-06-14 20:27:56 UTC) #8
Tom Anderson
On 2017/06/14 20:27:56, Nico wrote: > On 2017/06/13 22:30:17, Tom Anderson wrote: > > On ...
3 years, 6 months ago (2017-06-14 21:31:27 UTC) #9
Tom Anderson
I have a minimal example of the first thing: -----test.cpp----- typedef long unsigned int size_t; ...
3 years, 6 months ago (2017-06-14 23:23:36 UTC) #10
Tom Anderson
If I add 'attribute((visibility("hidden")))' in test.cpp above, clang gives: test.cpp:4:16: error: visibility does not match ...
3 years, 6 months ago (2017-06-15 02:06:39 UTC) #13
pcc1
On 2017/06/15 02:06:39, Tom Anderson wrote: > If I add 'attribute((visibility("hidden")))' in test.cpp above, clang ...
3 years, 6 months ago (2017-06-15 04:13:43 UTC) #14
Tom Anderson
On 2017/06/15 04:13:43, pcc1 wrote: > On 2017/06/15 02:06:39, Tom Anderson wrote: > > If ...
3 years, 6 months ago (2017-06-15 20:37:09 UTC) #15
Tom Anderson
unclosing and +primiano
3 years, 6 months ago (2017-06-16 16:47:18 UTC) #17
Nico
lgtm to land this as a workaround for now, and to then pursue the long-term ...
3 years, 6 months ago (2017-06-19 19:22:42 UTC) #18
Tom Anderson
https://codereview.chromium.org/2937433003/diff/1/third_party/libc++/BUILD.gn File third_party/libc++/BUILD.gn (right): https://codereview.chromium.org/2937433003/diff/1/third_party/libc++/BUILD.gn#newcode27 third_party/libc++/BUILD.gn:27: "_LIBCPP_OVERRIDABLE_FUNC_VIS=__attribute__((__visibility__(\"default\")))", On 2017/06/19 19:22:41, Nico wrote: > Can you ...
3 years, 6 months ago (2017-06-19 19:27:40 UTC) #19
Tom Anderson
3 years, 6 months ago (2017-06-19 19:27:50 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
9a65473a7e8f39f04fd134e69470ab1b48514b0e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698