Re: [PATCH] Fix -fsanitize=float-cast-overflow with C FE (PR sanitizer/64289)

2014-12-16 Thread Joseph Myers
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 b

[PATCH] Fix -fsanitize=float-cast-overflow with C FE (PR sanitizer/64289)

2014-12-12 Thread Jakub Jelinek
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 sa