This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] tsan.c: mark tsan_atomic_table as constant
- From: Konstantin Serebryany <konstantin dot s dot serebryany at gmail dot com>
- To: David Malcolm <dmalcolm at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 5 Jun 2013 13:27:38 +0400
- Subject: Re: [PATCH] tsan.c: mark tsan_atomic_table as constant
- References: <1370400024 dot 20213 dot 6 dot camel at surprise>
On Wed, Jun 5, 2013 at 6:40 AM, David Malcolm <dmalcolm@redhat.com> 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
>
> 2013-06-05 David Malcolm <dmalcolm@redhat.com>
>
> * tsan.c (tsan_atomic_table): Make const.
>