Re: [PATCH] tsan.c: mark tsan_atomic_table as constant

2013-06-05 Thread David Malcolm
On Wed, 2013-06-05 at 13:27 +0400, Konstantin Serebryany wrote: > On Wed, Jun 5, 2013 at 6:40 AM, David Malcolm wrote: > > The table of struct tsan_map_atomic within tsan.c is never modified, so > > it can be marked as const. > > > > Successfully bootstrapped on x86_64-unknown-linux-gnu (using > >

Re: [PATCH] tsan.c: mark tsan_atomic_table as constant

2013-06-05 Thread Konstantin Serebryany
On Wed, Jun 5, 2013 at 6:40 AM, David Malcolm wrote: > The table of struct tsan_map_atomic within tsan.c is never modified, so > it can be marked as const. > > Successfully bootstrapped on x86_64-unknown-linux-gnu (using > gcc-4.7.2-2.fc17.x86_64). > > OK for trunk? Looks good, thanks. --kcc >

[PATCH] tsan.c: mark tsan_atomic_table as constant

2013-06-04 Thread David Malcolm
The table of struct tsan_map_atomic within tsan.c is never modified, so it can be marked as const. Successfully bootstrapped on x86_64-unknown-linux-gnu (using gcc-4.7.2-2.fc17.x86_64). OK for trunk? 2013-06-05 David Malcolm * tsan.c (tsan_atomic_table): Make const. Index: gcc/tsan.