Re: GCC Common-Function-Attributes/const

2018-11-28 Thread Richard Biener
On Tue, Nov 27, 2018 at 12:37 AM Martin Sebor wrote: > > On 11/26/18 1:30 PM, cmdLP #CODE wrote: > > Dear GCC-developer team, > > > > The specification of the const-attribute is a bit ambiguous, it does not > > fully specify which global variables are allowed to be read from. Obviously > > constan

Re: GCC Common-Function-Attributes/const

2018-11-27 Thread Martin Sebor
[CC gcc list and Sandra] Thanks for the suggestions. I agree that the documentation should make it possible to answer at least the basic questions on your list. We'll see about incorporating them. In general, attributes that affect optimization are implemented at a level where higher-level dis

Re: GCC Common-Function-Attributes/const

2018-11-26 Thread Martin Sebor
On 11/26/18 1:30 PM, cmdLP #CODE wrote: Dear GCC-developer team, The specification of the const-attribute is a bit ambiguous, it does not fully specify which global variables are allowed to be read from. Obviously constant global compile-time initialized variables can be accessed without problem

GCC Common-Function-Attributes/const

2018-11-26 Thread cmdLP #CODE
Dear GCC-developer team, The specification of the const-attribute is a bit ambiguous, it does not fully specify which global variables are allowed to be read from. Obviously constant global compile-time initialized variables can be accessed without problem. But what about run time initialized vari