aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/module.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2020-11-05 20:42:17 -0700
committerJeff Law <law@redhat.com>2020-11-05 20:46:00 -0700
commit32ee472864ada44ef05b2a3b087b8ce413bee282 (patch)
tree058c571d79ef476500b22795e764f3cce62c755d /gcc/fortran/module.c
parent6483f05989ef31ebf2583deeb4753211ca2b7e17 (diff)
downloadgcc-32ee472864ada44ef05b2a3b087b8ce413bee282.zip
gcc-32ee472864ada44ef05b2a3b087b8ce413bee282.tar.gz
gcc-32ee472864ada44ef05b2a3b087b8ce413bee282.tar.bz2
Improve overflow check
Convert x < (short) ((unsigned short)x + const) to x <= SHORT_MAX – const (and similarly for other integral types) if const is not 0. gcc/ PR tree-optimization/97223 * match.pd (overflow detection and optimization): Handle conversions. gcc/testsuite/ * gcc.dg/no-strict-overflow-4.c: Adjust expected output.
Diffstat (limited to 'gcc/fortran/module.c')
0 files changed, 0 insertions, 0 deletions