Re: [PATCH v2 0/5] kernel hacking: GCC optimization for debug experience (-Og)

2018-05-03 Thread Du, Changbin
On Wed, May 02, 2018 at 03:56:31PM +0100, Daniel Thompson wrote: > On Wed, May 02, 2018 at 09:44:55PM +0800, changbin...@intel.com wrote: > > From: Changbin Du > > > > Hi all, > > I know some kernel developers was searching for a method to dissable GCC > > optimizations,

Re: [PATCH v2 0/5] kernel hacking: GCC optimization for debug experience (-Og)

2018-05-03 Thread Du, Changbin
On Wed, May 02, 2018 at 03:56:31PM +0100, Daniel Thompson wrote: > On Wed, May 02, 2018 at 09:44:55PM +0800, changbin...@intel.com wrote: > > From: Changbin Du > > > > Hi all, > > I know some kernel developers was searching for a method to dissable GCC > > optimizations, probably they want to

Re: [PATCH v2 0/5] kernel hacking: GCC optimization for debug experience (-Og)

2018-05-02 Thread Daniel Thompson
On Wed, May 02, 2018 at 09:44:55PM +0800, changbin...@intel.com wrote: > From: Changbin Du > > Hi all, > I know some kernel developers was searching for a method to dissable GCC > optimizations, probably they want to apply GCC '-O0' option. But since Linux > kernel replys

Re: [PATCH v2 0/5] kernel hacking: GCC optimization for debug experience (-Og)

2018-05-02 Thread Daniel Thompson
On Wed, May 02, 2018 at 09:44:55PM +0800, changbin...@intel.com wrote: > From: Changbin Du > > Hi all, > I know some kernel developers was searching for a method to dissable GCC > optimizations, probably they want to apply GCC '-O0' option. But since Linux > kernel replys on GCC optimization to

[PATCH v2 0/5] kernel hacking: GCC optimization for debug experience (-Og)

2018-05-02 Thread changbin . du
From: Changbin Du Hi all, I know some kernel developers was searching for a method to dissable GCC optimizations, probably they want to apply GCC '-O0' option. But since Linux kernel replys on GCC optimization to remove some dead code, so '-O0' just breaks the build. They

[PATCH v2 0/5] kernel hacking: GCC optimization for debug experience (-Og)

2018-05-02 Thread changbin . du
From: Changbin Du Hi all, I know some kernel developers was searching for a method to dissable GCC optimizations, probably they want to apply GCC '-O0' option. But since Linux kernel replys on GCC optimization to remove some dead code, so '-O0' just breaks the build. They do need this because