Although BOOT_CFLAGS can be used to bootstrap with -Og, having a
dedicated build config is sometimes more convenient.

Tested on aarch64-linux-gnu and x86_64-linux-gnu.  OK to install?

Richard


2019-07-07  Richard Sandiford  <richard.sandif...@arm.com>

config/
        * bootstrap-Og.mk: New file.

gcc/
        * doc/install.texi (bootstrap-Og): Document.

Index: config/bootstrap-Og.mk
===================================================================
--- /dev/null   2019-06-14 15:59:19.298479944 +0100
+++ config/bootstrap-Og.mk      2019-07-07 10:20:42.935544725 +0100
@@ -0,0 +1,1 @@
+BOOT_CFLAGS := -Og $(filter-out -O%, $(BOOT_CFLAGS))
Index: gcc/doc/install.texi
===================================================================
--- gcc/doc/install.texi        2019-07-03 20:50:42.350350342 +0100
+++ gcc/doc/install.texi        2019-07-07 10:20:42.935544725 +0100
@@ -2535,6 +2535,7 @@ Removes any @option{-O}-started option f
 @samp{BOOT_CFLAGS='-g -O1'}.
 
 @item @samp{bootstrap-O3}
+@itemx @samp{bootstrap-Og}
 Analogous to @code{bootstrap-O1}.
 
 @item @samp{bootstrap-lto}

Reply via email to