<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_codegen_ssa/src/traits/debuginfo.rs, branch try-perf</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=try-perf</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=try-perf'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-10-02T06:55:51+00:00</updated>
<entry>
<title>codegen: Generate `dbg_value` for the ref statement</title>
<updated>2025-10-02T06:55:51+00:00</updated>
<author>
<name>dianqk</name>
<email>dianqk@dianqk.net</email>
</author>
<published>2025-06-18T14:04:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1bd89bd42e0bb6f29b8af5d6bdf3f756196bb8ee'/>
<id>urn:sha1:1bd89bd42e0bb6f29b8af5d6bdf3f756196bb8ee</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Revert "Preserve the .debug_gdb_scripts section"</title>
<updated>2025-08-06T18:01:07+00:00</updated>
<author>
<name>bjorn3</name>
<email>17426603+bjorn3@users.noreply.github.com</email>
</author>
<published>2025-08-06T18:01:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e02cc40ec96457ab563273a69d314418cea7eb84'/>
<id>urn:sha1:e02cc40ec96457ab563273a69d314418cea7eb84</id>
<content type='text'>
This reverts commit 868bdde25b030e0b71a29a5dbc04a891036e702e.
</content>
</entry>
<entry>
<title>Preserve the .debug_gdb_scripts section</title>
<updated>2025-08-05T08:55:07+00:00</updated>
<author>
<name>Sebastian Poeplau</name>
<email>poeplau@adacore.com</email>
</author>
<published>2025-08-01T10:39:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=868bdde25b030e0b71a29a5dbc04a891036e702e'/>
<id>urn:sha1:868bdde25b030e0b71a29a5dbc04a891036e702e</id>
<content type='text'>
Make sure that compiler and linker don't optimize the section's contents
away by adding the global holding the data to "llvm.used". The volatile
load in the main shim is retained because "llvm.used", which translates
to SHF_GNU_RETAIN on ELF targets, requires a reasonably recent linker;
emitting the volatile load ensures compatibility with older linkers, at
least when libstd is used.

Pretty printers in dylib dependencies are now emitted by the main crate
instead of the dylib; apart from matching how rlibs are handled, this
approach has the advantage that `omit_gdb_pretty_printer_section` keeps
working with dylib dependencies.
</content>
</entry>
<entry>
<title>Remove get_dbg_loc from DebugInfoBuilderMethods</title>
<updated>2025-06-03T10:00:11+00:00</updated>
<author>
<name>bjorn3</name>
<email>17426603+bjorn3@users.noreply.github.com</email>
</author>
<published>2025-06-03T10:00:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=00a88b903d3728517dff8f0044160d18a0322ab4'/>
<id>urn:sha1:00a88b903d3728517dff8f0044160d18a0322ab4</id>
<content type='text'>
It is only used within cg_llvm.
</content>
</entry>
<entry>
<title>Use ExistentialTraitRef throughout codegen</title>
<updated>2025-01-30T15:34:00+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2025-01-10T20:26:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9dc41a048d7dc765b28102d557eec40ff050e6ab'/>
<id>urn:sha1:9dc41a048d7dc765b28102d557eec40ff050e6ab</id>
<content type='text'>
</content>
</entry>
<entry>
<title>CFI: Append debug location to CFI blocks</title>
<updated>2024-11-11T09:17:43+00:00</updated>
<author>
<name>Bastian Kersting</name>
<email>bkersting@google.com</email>
</author>
<published>2024-11-08T08:51:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c2102259a04dd9ede1e7faf01daa0dfcb948c214'/>
<id>urn:sha1:c2102259a04dd9ede1e7faf01daa0dfcb948c214</id>
<content type='text'>
</content>
</entry>
<entry>
<title>compiler: Directly use rustc_abi in codegen</title>
<updated>2024-11-03T20:30:32+00:00</updated>
<author>
<name>Jubilee Young</name>
<email>workingjubilee@gmail.com</email>
</author>
<published>2024-11-03T02:32:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b895bf4fdce434f394dbe0f4c57d4d0952cd13d7'/>
<id>urn:sha1:b895bf4fdce434f394dbe0f4c57d4d0952cd13d7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Reformat using the new identifier sorting from rustfmt</title>
<updated>2024-09-22T23:11:29+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-09-22T23:05:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c682aa162b0d41e21cc6748f4fecfe01efb69d1f'/>
<id>urn:sha1:c682aa162b0d41e21cc6748f4fecfe01efb69d1f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename supertraits of `CodegenMethods`.</title>
<updated>2024-09-17T00:24:43+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-09-17T00:15:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a8d22eb39eafcc19d4c3db4f24582d869c8fdef2'/>
<id>urn:sha1:a8d22eb39eafcc19d4c3db4f24582d869c8fdef2</id>
<content type='text'>
Supertraits of `BuilderMethods` are all called `XyzBuilderMethods`.
Supertraits of `CodegenMethods` are all called `XyzMethods`. This commit
changes the latter to `XyzCodegenMethods`, for consistency.
</content>
</entry>
<entry>
<title>Don't leave debug locations for constants sitting on the builder indefinitely.</title>
<updated>2024-09-06T23:12:18+00:00</updated>
<author>
<name>Kyle Huey</name>
<email>khuey@kylehuey.com</email>
</author>
<published>2024-09-06T19:39:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7ed9f945a22a6e9cfb75405698e0eaa163c12beb'/>
<id>urn:sha1:7ed9f945a22a6e9cfb75405698e0eaa163c12beb</id>
<content type='text'>
Because constants are currently emitted *before* the prologue, leaving the
debug location on the IRBuilder spills onto other instructions in the prologue
and messes up both line numbers as well as the point LLVM chooses to be the
prologue end.

Example LLVM IR (irrelevant IR elided):
Before:

define internal { i64, i64 } @_ZN3tmp3Foo18var_return_opt_try17he02116165b0fc08cE(ptr align 8 %self) !dbg !347 {
start:
  %self.dbg.spill = alloca [8 x i8], align 8
  %_0 = alloca [16 x i8], align 8
  %residual.dbg.spill = alloca [0 x i8], align 1
    #dbg_declare(ptr %residual.dbg.spill, !353, !DIExpression(), !357)
  store ptr %self, ptr %self.dbg.spill, align 8, !dbg !357
    #dbg_declare(ptr %self.dbg.spill, !350, !DIExpression(), !358)

After:

define internal { i64, i64 } @_ZN3tmp3Foo18var_return_opt_try17h00b17d08874ddd90E(ptr align 8 %self) !dbg !347 {
start:
  %self.dbg.spill = alloca [8 x i8], align 8
  %_0 = alloca [16 x i8], align 8
  %residual.dbg.spill = alloca [0 x i8], align 1
    #dbg_declare(ptr %residual.dbg.spill, !353, !DIExpression(), !357)
  store ptr %self, ptr %self.dbg.spill, align 8
    #dbg_declare(ptr %self.dbg.spill, !350, !DIExpression(), !358)

Note in particular how !357 from %residual.dbg.spill's dbg_declare no longer
falls through onto the store to %self.dbg.spill. This fixes argument values
at entry when the constant is a ZST (e.g. &lt;Option as Try&gt;::Residual). This
fixes #130003 (but note that it does *not* fix issues with argument values and
non-ZST constants, which emit their own stores that have debug info on them,
like #128945).
</content>
</entry>
</feed>
