Re: [Xen-devel] [PATCH v3] tools: detect appropriate debug optimization level

2016-04-28 Thread Wei Liu
On Tue, Apr 26, 2016 at 09:38:45AM -0500, Doug Goldstein wrote: > When building debug use -Og as the optimization level if its available, > otherwise retain the use of -O0. -Og has been added by GCC to enable all > optimizations that to not affect debugging while retaining full > debugability. > >

Re: [Xen-devel] [PATCH v3] tools: detect appropriate debug optimization level

2016-04-28 Thread Wei Liu
On Thu, Apr 28, 2016 at 06:19:19PM +0100, Ian Jackson wrote: > Doug Goldstein writes ("[PATCH v3] tools: detect appropriate debug > optimization level"): > > When building debug use -Og as the optimization level if its available, > > otherwise retain the use of -O0. -Og has been added by GCC to en

Re: [Xen-devel] [PATCH v3] tools: detect appropriate debug optimization level

2016-04-28 Thread Ian Jackson
Doug Goldstein writes ("[PATCH v3] tools: detect appropriate debug optimization level"): > When building debug use -Og as the optimization level if its available, > otherwise retain the use of -O0. -Og has been added by GCC to enable all > optimizations that to not affect debugging while retaining

Re: [Xen-devel] [PATCH v3] tools: detect appropriate debug optimization level

2016-04-28 Thread Wei Liu
On Tue, Apr 26, 2016 at 09:38:45AM -0500, Doug Goldstein wrote: > When building debug use -Og as the optimization level if its available, > otherwise retain the use of -O0. -Og has been added by GCC to enable all > optimizations that to not affect debugging while retaining full > debugability. > >

[Xen-devel] [PATCH v3] tools: detect appropriate debug optimization level

2016-04-26 Thread Doug Goldstein
When building debug use -Og as the optimization level if its available, otherwise retain the use of -O0. -Og has been added by GCC to enable all optimizations that to not affect debugging while retaining full debugability. Signed-off-by: Doug Goldstein --- change since v2: - switch back to cc-opt