This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
50a46710a9
rust
/
tests
/
run-make
/
issue-14500
/
foo.c
8 lines
98 B
C
Raw
Normal View
History
Unescape
Escape
rustc: Preserve reachable extern fns with LTO All rust functions are internal implementation details with respect to the ABI exposed by crates, but extern fns are public components of the ABI and shouldn't be stripped. This commit serializes reachable extern fns to metadata, so when LTO is performed all of their symbols are not stripped. Closes #14500
2014-06-06 19:48:46 -05:00
extern
void
foo
(
)
;
Preserve public static items across LTO
2015-11-06 03:51:03 -06:00
extern
char
FOO_STATIC
;
rustc: Preserve reachable extern fns with LTO All rust functions are internal implementation details with respect to the ABI exposed by crates, but extern fns are public components of the ABI and shouldn't be stripped. This commit serializes reachable extern fns to metadata, so when LTO is performed all of their symbols are not stripped. Closes #14500
2014-06-06 19:48:46 -05:00
int
main
(
)
{
foo
(
)
;
Preserve public static items across LTO
2015-11-06 03:51:03 -06:00
return
(
int
)
FOO_STATIC
;
rustc: Preserve reachable extern fns with LTO All rust functions are internal implementation details with respect to the ABI exposed by crates, but extern fns are public components of the ABI and shouldn't be stripped. This commit serializes reachable extern fns to metadata, so when LTO is performed all of their symbols are not stripped. Closes #14500
2014-06-06 19:48:46 -05:00
}
Reference in New Issue
Copy Permalink