On Wed, 9 Aug 2023 at 10:00, Luís Carlos Carneiro Gonçalves via Gcc <gcc@gcc.gnu.org> wrote: > > https://community.intel.com/t5/GPU-Compute-Software/Intel-GPU-OpenCL-with-g-O3-flag/m-p/1512130/emcs_t/S2h8ZW1haWx8dG9waWNfc3Vic2NyaXB0aW9ufExMMkkxSjhRTU1HMjZZfDE1MTIxMzB8U1VCU0NSSVBUSU9OU3xoSw
This is the wrong mailing list for this topic, please use gcc-h...@gcc.gnu.org next time. If you get different results for -O2 and -O3 then it probably means your program has a bug. "Before reporting that GCC compiles your code incorrectly, compile it with gcc -Wall -Wextra and see whether this shows anything wrong with your code. Similarly, if compiling with -fno-strict-aliasing -fwrapv -fno-aggressive-loop-optimizations makes a difference, or if compiling with -fsanitize=undefined produces any run-time errors, then your code is probably not correct." -- https://gcc.gnu.org/bugs/