Message ID | 87n5s4op-q866-o07s-45sr-47r78s153so@fhfr.qr |
---|---|
State | New |
Headers | show |
Series | tree-optimization/102853 - avoid trapping types in split_constant_offset | expand |
diff --git a/gcc/tree-data-ref.c b/gcc/tree-data-ref.c index 57bac06242f..46f4ffedb48 100644 --- a/gcc/tree-data-ref.c +++ b/gcc/tree-data-ref.c @@ -757,6 +757,9 @@ split_constant_offset_1 (tree type, tree op0, enum tree_code code, tree op1, *var = NULL_TREE; *off = NULL_TREE; + if (INTEGRAL_TYPE_P (type) && TYPE_OVERFLOW_TRAPS (type)) + return false; + switch (code) { case INTEGER_CST: