You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/back/lto.rs
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,7 @@
1
+
// FIXME:
2
+
// fat-lto UI test fail with:
3
+
// x86_64-pc-linux-gnu-gcc-13.1.0: fatal error: ‘-fuse-linker-plugin’, but liblto_plugin.so not found
4
+
//
1
5
// Fix these warnings:
2
6
// /usr/bin/ld: warning: type of symbol `_RNvNvNvNtCs5JWOrf9uCus_5rayon11thread_pool19WORKER_THREAD_STATE7___getit5___KEY' changed from 1 to 6 in /tmp/ccKeUSiR.ltrans0.ltrans.o
3
7
// /usr/bin/ld: warning: type of symbol `_RNvNvNvNvNtNtNtCsAj5i4SGTR7_3std4sync4mpmc5waker17current_thread_id5DUMMY7___getit5___KEY' changed from 1 to 6 in /tmp/ccKeUSiR.ltrans0.ltrans.o
Copy file name to clipboardExpand all lines: src/lib.rs
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
-
// TODO: rebase on master.
2
-
3
1
/*
4
2
* TODO(antoyo): implement equality in libgccjit based on https://zpz.github.io/blog/overloading-equality-operator-in-cpp-class-hierarchy/ (for type equality?)
5
3
* TODO(antoyo): support #[inline] attributes.
6
4
* TODO(antoyo): support LTO (gcc's equivalent to Full LTO is -flto -flto-partition=one — https://documentation.suse.com/sbp/all/html/SBP-GCC-10/index.html).
5
+
* For Thin LTO, this might be helpful:
6
+
* In gcc 4.6 -fwhopr was removed and became default with -flto. The non-whopr path can still be executed via -flto-partition=none.
7
7
*
8
8
* TODO(antoyo): remove the patches.
9
9
*/
@@ -71,6 +71,7 @@ use std::any::Any;
71
71
use std::sync::atomic::AtomicBool;
72
72
use std::sync::{Arc,Mutex};
73
73
74
+
use errors::LTONotSupported;
74
75
use gccjit::{Context,OptimizationLevel,CType};
75
76
use rustc_ast::expand::allocator::AllocatorKind;
76
77
use rustc_codegen_ssa::{CodegenResults,CompiledModule,ModuleCodegen};
@@ -86,7 +87,7 @@ use rustc_metadata::EncodedMetadata;
86
87
use rustc_middle::dep_graph::{WorkProduct,WorkProductId};
87
88
use rustc_middle::ty::TyCtxt;
88
89
use rustc_middle::ty::query::Providers;
89
-
use rustc_session::config::{OptLevel,OutputFilenames};
90
+
use rustc_session::config::{Lto,OptLevel,OutputFilenames};
90
91
use rustc_session::Session;
91
92
use rustc_span::Symbol;
92
93
use rustc_span::fatal_error::FatalError;
@@ -117,9 +118,12 @@ impl CodegenBackend for GccCodegenBackend {
0 commit comments