rust/compiler/rustc_codegen_gcc/src
Matthias Krüger 5408ec3069
Rollup merge of #147576 - Mark-Simulacrum:fix-offset-zst, r=nnethercote,RalfJung
Fix ICE on offsetted ZST pointer

I'm not sure this is the *right* fix, but it's simple enough and does roughly what I'd expect. Like with the previous optimization to codegen usize rather than a zero-sized static, there's no guarantee that we continue returning a particular value from the offsetting.

A grep for `const_usize.*align` found the same code copied to rustc_codegen_gcc and cranelift but a quick skim didn't find other cases of similar 'optimization'. That said, I'm not convinced I caught everything, it's not trivial to search for this.

Closes rust-lang/rust#147516
2025-10-16 19:35:24 +02:00
..
back Restrict sysroot crate imports to those defined in this repo. 2025-10-15 13:17:25 +01:00
intrinsic Rollup merge of #144197 - KMJ-007:type-tree, r=ZuseZ4 2025-09-28 18:13:11 +02:00
abi.rs Merge commit '4b5c44b141' into subtree-update_cg_gcc_2025-06-30 2025-06-30 16:12:42 +02:00
allocator.rs Move computation of allocator shim contents to cg_ssa 2025-10-10 13:04:55 +00:00
asm.rs Implement ppc/ppc64 preserves_flags option for inline asm 2025-10-14 10:05:07 -05:00
attributes.rs remove rustc_attr_data_structures 2025-07-31 14:19:27 +02:00
base.rs Add panic=immediate-abort 2025-09-21 13:12:18 -04:00
builder.rs added typetree support for memcpy 2025-09-19 04:02:20 +00:00
callee.rs remove rustc_attr_data_structures 2025-07-31 14:19:27 +02:00
common.rs Fix ICE on offsetted ZST pointer 2025-10-15 20:06:46 -04:00
consts.rs Restrict sysroot crate imports to those defined in this repo. 2025-10-15 13:17:25 +01:00
context.rs remove explicit deref of AbiAlign for most methods 2025-09-28 15:02:14 -07:00
coverageinfo.rs Unbox and unwrap the contents of StatementKind::Coverage 2024-03-23 22:05:11 +11:00
debuginfo.rs codegen: Generate dbg_value for the ref statement 2025-10-02 14:55:51 +08:00
declare.rs Merge commit 'b7091eca6d' into subtree-update_cg_gcc_2025-06-28 2025-06-28 23:37:08 +02:00
errors.rs Implement support for explicit tail calls in the MIR block builders and the LLVM codegen backend. 2025-07-26 01:02:29 +02:00
gcc_util.rs Restrict sysroot crate imports to those defined in this repo. 2025-10-15 13:17:25 +01:00
int.rs Merge commit '482e8540a1' into subtree-update_cg_gcc_2025-08-04 2025-08-04 10:49:43 +02:00
lib.rs Auto merge of #143548 - Diggsey:db-limit-extern-crate-usage, r=oli-obk 2025-10-15 13:32:03 +00:00
mono_item.rs Port the #[linkage] attribute to the new attribute system 2025-08-13 21:01:37 +02:00
type_.rs Merge commit 'fda0bb9588' into subtree-update_cg_gcc_2025-06-18 2025-06-18 15:11:44 +02:00
type_of.rs erase_regions to erase_and_anonymize_regions 2025-09-09 14:49:16 +02:00