https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61577
--- Comment #158 from Peter Bisroev <peter.bisroev at groundlabs dot com> --- (In reply to dave.anglin from comment #156) > On 2020-02-11 11:31 a.m., peter.bisroev at groundlabs dot com wrote: > > However the above can be compiled with -O0 with the same compiler. So I > > changed > > my build line to use -O0 as well: > > ---------- > > gmake \ > > STAGE1_CFLAGS="-D_XOPEN_SOURCE_EXTENDED -g -O1" \ > > STAGE1_CXXFLAGS="-D_XOPEN_SOURCE_EXTENDED -g -O1" \ > > STAGE1_TFLAGS='-g -O0 -D_XOPEN_SOURCE_EXTENDED' \ > > BOOT_CFLAGS='-g -O0 -D_XOPEN_SOURCE_EXTENDED' \ > > CFLAGS_FOR_TARGET='-g -O0 -D_XOPEN_SOURCE_EXTENDED' bootstrap > Regarding the _XOPEN_SOURCE_EXTENDED define, I changed the PA-RISC backend > to automatically > enable the XOPEN extensions. See pa-hpux11.h. This makes the HP-UX c++ > environment closer to > Linux. Will take a look, thanks! > I doubt you need to define STAGE1_TFLAGS. Likewise for CFLAGS_FOR_TARGET. > You may want BOOT_CXXFLAGS. Actually this is what I tried first. However during configure inside libraries -O2 was still being used. So I just threw everything in there to see what happens :)
