mirror of git://gcc.gnu.org/git/gcc.git
re PR sanitizer/80932 (UBSAN: false positive as a result of distribution: c1*(c2*v1-c3*v2)=>c1*c2*v1-c1*c3*v2)
PR sanitize/80932 * c-c++-common/ubsan/pr80932.c: Test with ints, not with long ints. From-SVN: r249010
This commit is contained in:
parent
8055904e9e
commit
5ed418891b
|
|
@ -1,3 +1,8 @@
|
||||||
|
2017-06-08 Marek Polacek <polacek@redhat.com>
|
||||||
|
|
||||||
|
PR sanitize/80932
|
||||||
|
* c-c++-common/ubsan/pr80932.c: Test with ints, not with long ints.
|
||||||
|
|
||||||
2017-08-08 Julia Koval <julia.koval@intel.com>
|
2017-08-08 Julia Koval <julia.koval@intel.com>
|
||||||
|
|
||||||
PR target/73350,80862
|
PR target/73350,80862
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,10 @@
|
||||||
|
|
||||||
int x = 1;
|
int x = 1;
|
||||||
|
|
||||||
long int
|
int
|
||||||
foo (void)
|
foo (void)
|
||||||
{
|
{
|
||||||
return ((long) (13801962912760474560ULL * x) - (long) (15334142073106273231ULL * x)) * -6;
|
return ((int) (2855545792U * x) - (int) (3269399503U * x)) * -5;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue