This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [google gcc-4_7,gcc-4_8,integration] Add bounds checks to vector<bool>
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Paul Pluzhnikov <ppluzhnikov at google dot com>
- Cc: Diego Novillo <dnovillo at google dot com>, gcc-patches <gcc-patches at gcc dot gnu dot org>, "libstdc++" <libstdc++ at gcc dot gnu dot org>
- Date: Thu, 23 May 2013 17:14:17 +0100
- Subject: Re: [google gcc-4_7,gcc-4_8,integration] Add bounds checks to vector<bool>
- References: <ye6q7gip66eq dot fsf at elbrus2 dot mtv dot corp dot google dot com> <CALoOobNTTBRvLKLg_arRYbpRTA+oiVo2KyGd+owE6RB=+CFUZA at mail dot gmail dot com>
On 23 May 2013 16:56, Paul Pluzhnikov wrote:
>>
>> This patch adds (relatively) cheap bounds and dangling checks to
>> vector<bool>, similar to the checks I added to vector<T> in r195373,
>> r195356, etc.
I was wondering the other day whether we should put these checks on
trunk and enable them automatically when !defined(__OPTIMIZE__)
Now that we have -Og you could use that to disable the checks without
sacrificing debuggability.