GCC 12.1 Released
GCC 12.1 Released
Posted May 7, 2022 4:25 UTC (Sat) by wtarreau (subscriber, #51152)In reply to: GCC 12.1 Released by flussence
Parent article: GCC 12.1 Released
> -O2 enables autovectorisation now, so that should be fun. It may have gotten more stable since it was introduced but it used to be a constant source of misery.
Indeed, I noticed it causing trouble in the past due to alignment, because when you try to access a struct allocated at some place, which contains only small types and doesn't require a 128-bit alignment, and vector instructions are used on it, suddenly your program dies miserably in alignment trap. I anticipate we'll have to add "__attribute__((aligned(sizeof(void*))))" to each and every struct definition to avoid jokes, just in case...
