https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71714
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- You need to explain what you mean by "release version" and "debug version". There are no such "modes" for GCC, you can use any combination of -O optimization options and also use -g for debug info. So instead of talking about "release version" and "debug versions" you need to tell us exactly which sets of options you are using in each case.