This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix -fsanitize=float-cast-overflow with C FE (PR sanitizer/64289)
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 16 Dec 2014 18:58:47 +0000
- Subject: Re: [PATCH] Fix -fsanitize=float-cast-overflow with C FE (PR sanitizer/64289)
- Authentication-results: sourceware.org; auth=none
- References: <20141212213028 dot GE1667 at tucnak dot redhat dot com>
On Fri, 12 Dec 2014, Jakub Jelinek wrote:
> Hi!
>
> -fsanitize=float-cast-overflow sanitization is done in convert.c and calls
> there save_expr. Unfortunately, save_expr is a no-go for the C FE, we need
> c_save_expr, but as convert.c is shared by all FEs, the only way to arrange
> that would be a new langhook. This patch attempts to fix it the same way
> as PR54428 did (the other save_expr in c-convert.c).
>
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
OK.
--
Joseph S. Myers
joseph@codesourcery.com