gcc-6-20160901 is now available

2016-09-01 Thread gccadmin
Snapshot gcc-6-20160901 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/6-20160901/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 6 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/branches/gcc-6

Re: Proposal: readable and writable attributes on variables

2016-09-01 Thread Martin Sebor
On 08/31/2016 04:56 AM, Jens Bauer wrote: Hi Martin (and everyone else on the gcc list). I appreciate your input and kind reply to my proposal. :) On Tue, 30 Aug 2016 20:44:35 -0600, Martin Sebor wrote: This sounds reasonable and useful to me but to be fully integrated into the language, attri

Re: Proposal: readable and writable attributes on variables

2016-09-01 Thread Jens Bauer
Hi Florian. On Thu, 1 Sep 2016 15:21:27 +0200, Florian Weimer wrote: >> So I'd like to propose the following two attributes, which is 'off' >> by default (eg. read access + write access): >> __attribute__((not_readable)) >> __attribute__((not_writable)) > > You can already do this: > > “ > int

Re: Proposal: readable and writable attributes on variables

2016-09-01 Thread Florian Weimer
On 08/30/2016 02:22 PM, Jens Bauer wrote: Hi all. I know it's possible to declare a variable 'read-only' by using 'const'. When working with microcontrollers (small ICs, which often requires you to write your code at driver-level), you need to be able to declare a structure member 'read-only'