[Bug sanitizer/80875] [7/8 Regression] UBSAN: compile time crash in fold_binary_loc at fold-const.c:9817

2017-05-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80875 --- Comment #6 from Marek Polacek --- Author: mpolacek Date: Fri May 26 09:31:36 2017 New Revision: 248485 URL: https://gcc.gnu.org/viewcvs?rev=248485=gcc=rev Log: PR sanitizer/80875 * fold-const.c (fold_binary_loc) : Check if

[Bug sanitizer/80875] [7/8 Regression] UBSAN: compile time crash in fold_binary_loc at fold-const.c:9817

2017-05-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80875 --- Comment #5 from Marek Polacek --- (In reply to Richard Biener from comment #4) > 9810 && negate_expr_p (op0) > 9811 && (tem = negate_expr (op1)) != op1 > > should probaby use negate_expr_p (op1) to guard

[Bug sanitizer/80875] [7/8 Regression] UBSAN: compile time crash in fold_binary_loc at fold-const.c:9817

2017-05-26 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80875 --- Comment #4 from Richard Biener --- 9810 && negate_expr_p (op0) 9811 && (tem = negate_expr (op1)) != op1 should probaby use negate_expr_p (op1) to guard this.

[Bug sanitizer/80875] [7/8 Regression] UBSAN: compile time crash in fold_binary_loc at fold-const.c:9817

2017-05-26 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80875 Richard Biener changed: What|Removed |Added Priority|P3 |P2 CC|

[Bug sanitizer/80875] [7/8 Regression] UBSAN: compile time crash in fold_binary_loc at fold-const.c:9817

2017-05-24 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80875 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug sanitizer/80875] [7/8 Regression] UBSAN: compile time crash in fold_binary_loc at fold-const.c:9817

2017-05-24 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80875 Marek Polacek changed: What|Removed |Added Keywords||ice-on-valid-code Target