On Thu, Aug 30, 2018 at 10:21:09AM -0500, Tom Ritter wrote:
> CFI vcall requires one to specify a -fvisibility flag on the command line,
> with hidden being the preffered. We set visibility explicitly in some
> difficult-to-quickly-identify ways, and adding -fvisibility=hidden
> triggered issues wi
CFI vcall requires one to specify a -fvisibility flag on the command line,
with hidden being the preffered. We set visibility explicitly in some
difficult-to-quickly-identify ways, and adding -fvisibility=hidden
triggered issues with NSS (as well as apparently being redundant to what we
currently d
I thought we had filed a Rust issue on this but apparently not. There's some
good discussion in this issue:
https://github.com/rust-lang/rust/issues/37530
For Firefox, simply having an equivalent to `-fvisilbility=hidden` so that all
the symbols in the generated static library are hidden would b
For some background: The Rust compiler will mark everything as `hidden` in
LLVM IR unless it is exported via a C interface (via either #[no_mangle] or
#[export_name]). So the FFI symbols in gkrust will have default visibility.
LLD will thus probably retain and re-export them, even if they are not
c
On Tue, Aug 28, 2018 at 4:56 PM, Till Schneidereit
wrote:
> On Tue, Aug 28, 2018 at 3:20 PM Mike Hommey wrote:
>> We don't LTO across languages on any platform yet. Rust is LTOed on all
>> platforms, which removes a bunch of its symbols. Everything that is
>> exposed for C/C++ from Rust, though,
CC'ing mw, who is working on cross-language LTO.
On Tue, Aug 28, 2018 at 3:20 PM Mike Hommey wrote:
> On Tue, Aug 28, 2018 at 09:14:02AM -0400, Jeff Muizelaar wrote:
> > We don't LTO yet on Mac.
>
> We don't LTO across languages on any platform yet. Rust is LTOed on all
> platforms, which remove
On Tue, Aug 28, 2018 at 09:14:02AM -0400, Jeff Muizelaar wrote:
> We don't LTO yet on Mac.
We don't LTO across languages on any platform yet. Rust is LTOed on all
platforms, which removes a bunch of its symbols. Everything that is
exposed for C/C++ from Rust, though, is left alone. That's likely t
We don't LTO yet on Mac.
-Jeff
On Tue, Aug 28, 2018 at 5:17 AM, Emilio Cobos Álvarez wrote:
>
>
> On 8/28/18 9:35 AM, Henri Sivonen wrote:
>>
>> Does some lld mechanism successfully remove dead code when gkrust
>> exports some FFI function that the rest of Gecko never ends up
>> calling?
>
>
> I
On 8/28/18 9:35 AM, Henri Sivonen wrote:
Does some lld mechanism successfully remove dead code when gkrust
exports some FFI function that the rest of Gecko never ends up
calling?
I would expect LTO to get rid of it, but haven't checked myself.
I.e. in terms of code size, is it OK to vendor
Does some lld mechanism successfully remove dead code when gkrust
exports some FFI function that the rest of Gecko never ends up
calling?
I.e. in terms of code size, is it OK to vendor an FFI-exposing Rust
crate where not every FFI function is used (at least right away)?
--
Henri Sivonen
hsivo..
10 matches
Mail list logo