https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102139
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target|riscv |riscv, x86_64-*-* --- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> --- And for a condition: typedef double aligned_double __attribute__((aligned(2*sizeof(double)))); void __attribute__((noipa)) bar (int aligned, double *p) { if (aligned) { *(aligned_double *)p = 3.; p[1] = 4.; } else { p[2] = 0.; p[3] = 1.; } } double x[8] __attribute__((aligned(2*sizeof (double)))); int main() { bar (0, &x[1]); return 0; }