This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] C undefined behavior fix


On Wed, Jan 09, 2002 at 08:47:15PM +0100, Gérard Roudier wrote:
> On Tue, 8 Jan 2002, J.A. Magallon wrote:
> 
> There is nothing in this code that requires the compiler to allocate
> memory for 'b'. You just invent the volatile constant concept. :)

What's so strange about volatile constant?  In C, const means you're
not allowed to modify something--not that it won't change.  A read-only
hardware register, for instance, would be const and volatile.


Jeroen


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]