Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
afae271
Initial commit
antoyo May 10, 2020
f7237f1
Add 'compiler/rustc_codegen_gcc/' from commit 'afae271d5d3719eeb92c18…
antoyo Aug 13, 2021
8841e9e
Fix tidy
antoyo Jul 19, 2021
7132ce6
Exclude rustc_codegen_gcc from namespace
antoyo Jul 19, 2021
0c89065
Update to nightly-2021-08-12 (#61)
antoyo Aug 14, 2021
6fc0696
Merge commit '0c89065b934397b62838fe3e4ef6f6352fc52daf' into libgccji…
antoyo Aug 14, 2021
e228f0c
Cleanup (#67)
antoyo Aug 15, 2021
3d5d4e3
Merge commit 'e228f0c16ea8c34794a6285bf57aab627c26b147' into libgccji…
antoyo Aug 15, 2021
6f50986
Empty gcc_path
antoyo Aug 15, 2021
87f8525
Merge commit '6f50986667debbfc67776304a8ee23fe0158613f' into libgccji…
antoyo Aug 15, 2021
5dad13c
Update custom rustc instructions (#73)
antoyo Aug 28, 2021
7c707e4
Implement basic inline asm support (#72)
Sep 5, 2021
4d3dcd4
Remove FUNDING.yml
antoyo Sep 16, 2021
8ec7976
fix: gh origin on readme (#83)
emersonlaurentino Sep 17, 2021
48d60ab
Update to nightly-2021-09-11 (#79)
Sep 17, 2021
df48731
Merge commit '48d60ab7c505c6c1ebb042eacaafd8dc9f7a9267' into libgccji…
antoyo Sep 17, 2021
0f4b616
Add notes for cross-compilation to gcc-only targets (#68)
antoyo Sep 26, 2021
4e7e822
Impove handling of registers in inline asm (#82)
Sep 26, 2021
64c561d
Fix global initialization (#91)
antoyo Sep 26, 2021
ab4ff2d
Cleanup fix for global initialization (#93)
antoyo Sep 27, 2021
63608ac
Fix/mismatch types (#94)
antoyo Sep 27, 2021
11c2023
Fix/count trailing zeroes (#95)
antoyo Sep 28, 2021
9809f5d
Update to nightly-2021-09-28 (#97)
antoyo Sep 28, 2021
7f32dd5
Merge commit '9809f5d21990d9e24b3e9876ea7da756fd4e9def' into libgccji…
antoyo Sep 28, 2021
cd4810d
Fix warnings (#98)
antoyo Sep 28, 2021
90be409
Merge commit 'cd4810de42c57b64b74dae09c530a4c3a41f87b9' into libgccji…
antoyo Sep 28, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions compiler/rustc_codegen_gcc/src/declare.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ impl<'gcc, 'tcx> CodegenCx<'gcc, 'tcx> {
global
}

pub fn declare_func(&self, name: &str, return_type: Type<'gcc>, params: &[Type<'gcc>], variadic: bool) -> RValue<'gcc> {
/*pub fn declare_func(&self, name: &str, return_type: Type<'gcc>, params: &[Type<'gcc>], variadic: bool) -> RValue<'gcc> {
self.linkage.set(FunctionType::Exported);
let func = declare_raw_fn(self, name, () /*llvm::CCallConv*/, return_type, params, variadic);
// FIXME(antoyo): this is a wrong cast. That requires changing the compiler API.
unsafe { std::mem::transmute(func) }
}
}*/

pub fn declare_global(&self, name: &str, ty: Type<'gcc>, is_tls: bool, link_section: Option<Symbol>) -> LValue<'gcc> {
let global = self.context.new_global(None, GlobalKind::Exported, ty, name);
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_codegen_gcc/src/intrinsic/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ impl<'a, 'gcc, 'tcx> IntrinsicCallMethods<'tcx> for Builder<'a, 'gcc, 'tcx> {
use rustc_target::abi::Abi::*;
let tp_ty = substs.type_at(0);
let layout = self.layout_of(tp_ty).layout;
let use_integer_compare = match layout.abi {
let _use_integer_compare = match layout.abi {
Scalar(_) | ScalarPair(_, _) => true,
Uninhabited | Vector { .. } => false,
Aggregate { .. } => {
Expand Down