https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63995
--- Comment #9 from Uroš Bizjak <ubizjak at gmail dot com> --- (In reply to Ilya Enkovich from comment #6) > For attached -g0 problem reproducer: > > >gcc pr63995-2.c -c -O2 -mmpx -fcheck-pointer-bounds -g -o 1.o > >gcc pr63995-2.c -c -O2 -mmpx -fcheck-pointer-bounds -g0 -o 2.o FYI, you can use -fcompare-debug here. Various dump functions (e.g. -fdump-tree-optimized, -fdump-rtl-expand, etc) will be dumped in two versions, the "debug" version will be suffixed with .gk.