This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Handle bit-fields in ubsan.c (PR sanitizer/58413)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Marek Polacek <polacek at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 20 Sep 2013 14:38:58 +0200
- Subject: Re: [PATCH] Handle bit-fields in ubsan.c (PR sanitizer/58413)
- Authentication-results: sourceware.org; auth=none
- References: <20130916155927 dot GD23899 at redhat dot com> <20130916160423 dot GS1817 at tucnak dot redhat dot com> <20130916161811 dot GE23899 at redhat dot com> <20130920082243 dot GK15960 at redhat dot com> <20130920083757 dot GX1817 at tucnak dot redhat dot com> <20130920123325 dot GL15960 at redhat dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, Sep 20, 2013 at 02:33:25PM +0200, Marek Polacek wrote:
> Agreed. Added that assert in there. How does it look now?
Ok.
> 2013-09-20 Marek Polacek <polacek@redhat.com>
>
> PR sanitizer/58413
> * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
> TYPE_PRECISION. Add asserts.
>
> testsuite/
> * c-c++-common/ubsan/shift-4.c: New test.
Jakub