https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106020
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I suspect it is warning on some unreachable code which is not optimized away until later. Until a full testcase is attached, it is going to be hard. Also it would be better if not using cmake, just use a makefile if needed or just a normal shell script to describe how to compile the files (cmake adds so much stuff to it is sometimes hard to tell if it is doing the right thing).