Re: [PATCH] doc: discourage const/volatile on register variables

2018-08-02 Thread Jeff Law
On 07/26/2018 05:18 AM, Richard Biener wrote: > On Thu, Jul 26, 2018 at 12:29 PM Alexander Monakov wrote: >> >> Hi, >> >> when using explicit register variables ('register int foo asm("%ebp");'), >> using const/volatile type qualifiers on the declaration does not result in >> the logically expecte

Re: [PATCH] doc: discourage const/volatile on register variables

2018-07-26 Thread Richard Biener
On Thu, Jul 26, 2018 at 12:29 PM Alexander Monakov wrote: > > Hi, > > when using explicit register variables ('register int foo asm("%ebp");'), > using const/volatile type qualifiers on the declaration does not result in > the logically expected effect. > > The main issue is that gcc-8 got "better

[PATCH] doc: discourage const/volatile on register variables

2018-07-26 Thread Alexander Monakov
Hi, when using explicit register variables ('register int foo asm("%ebp");'), using const/volatile type qualifiers on the declaration does not result in the logically expected effect. The main issue is that gcc-8 got "better" at propagating initializers of 'register const' variables to their uses