I'm trying to take a stab at fixing https://github.com/rust-lang/rust/issues/42779 by suppressing debug output for the naked fn's parameters.
I figure I could do it a couple of places.
I think the first one is probably the most reasonable since we don't know how other backends will behave.
I can't figure out, however, how to get the function definition in that scope so that I can inspect its attributes.
@bjorn3 I'm not seeing that. What am I missing?
@bjorn3 Awesome, thanks!
@bjorn3 Thanks for the help. It was exactly what I needed! https://github.com/rust-lang/rust/pull/74105
We shouldn't be emitting any alloca calls at all in naked functions. They cause incorrect codegen in debug builds.