diff mbox series

Add a build config for bootstrapping at -Og

Message ID mpt8stauqre.fsf@arm.com
State New
Headers show
Series Add a build config for bootstrapping at -Og | expand

Commit Message

Richard Sandiford July 7, 2019, 9:40 a.m. UTC
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.sandiford@arm.com>

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

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

Comments

Jeff Law July 7, 2019, 7 p.m. UTC | #1
On 7/7/19 3:40 AM, Richard Sandiford wrote:
> 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.sandiford@arm.com>
> 
> config/
> 	* bootstrap-Og.mk: New file.
> 
> gcc/
> 	* doc/install.texi (bootstrap-Og): Document.
OK
jeff
diff mbox series

Patch

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}