https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61577

--- Comment #156 from dave.anglin at bell dot net ---
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.

I doubt you need to define STAGE1_TFLAGS.  Likewise for CFLAGS_FOR_TARGET.
You may want BOOT_CXXFLAGS.

Reply via email to