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

2018-03-12 Thread Wei Liu
On Sat, Mar 10, 2018 at 11:08:21PM -0600, Doug Goldstein wrote: > On 3/2/18 6:46 AM, Wei Liu wrote: > > On Fri, Feb 23, 2018 at 11:26:17PM -0600, Doug Goldstein wrote: > >> On 4/28/16 12:40 PM, Wei Liu wrote: > >>> On Tue, Apr 26, 2016 at 09:38:45AM -0500, Doug Goldstein wrote: > When building

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

2018-03-10 Thread Doug Goldstein
On 3/2/18 6:46 AM, Wei Liu wrote: > On Fri, Feb 23, 2018 at 11:26:17PM -0600, Doug Goldstein wrote: >> On 4/28/16 12:40 PM, Wei Liu wrote: >>> 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

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

2018-03-02 Thread Wei Liu
On Fri, Feb 23, 2018 at 11:26:17PM -0600, Doug Goldstein wrote: > On 4/28/16 12:40 PM, Wei Liu wrote: > > 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 a

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

2018-02-23 Thread Doug Goldstein
On 4/28/16 12:40 PM, Wei Liu wrote: > 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