[Bug c++/112510] Regression: ASAN code injection breaks alignment of stack variables
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Nov 13 12:25:12 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112510
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
void gate_x1_curve(float *dst, const float *src, const dsp::gate_knee_t *c,
size_t count)
{
gate_knee_t knee __lsp_aligned64;
float mem[32] __lsp_aligned64;
float stub[8] __lsp_aligned64;
size_t mask;
you seem to rely on a specific chosen stack layout. Instead you should
put appropriate _Alignas or __attribute__((aligned(N))) on the variables
above.
More information about the Gcc-bugs
mailing list