forked from gcc-mirror/gcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ubsan.c (instrument_si_overflow): Instrument ABS_EXPR. * c-c++-common/ubsan/pr60636.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208841 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
jakub
committed
Mar 26, 2014
1 parent
ce8e666
commit 57e011d
Showing
4 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
2014-03-26 Jakub Jelinek <[email protected]> | ||
|
||
PR sanitizer/60636 | ||
* ubsan.c (instrument_si_overflow): Instrument ABS_EXPR. | ||
|
||
* tree-vrp.c (simplify_internal_call_using_ranges): If only | ||
one range is range_int_cst_p, but not both, at least optimize | ||
addition/subtraction of 0 and multiplication by 0 or 1. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
2014-03-26 Jakub Jelinek <[email protected]> | ||
|
||
PR sanitizer/60636 | ||
* c-c++-common/ubsan/pr60636.c: New test. | ||
|
||
2014-03-26 Andreas Schwab <[email protected]> | ||
|
||
* g++.dg/torture/pr60315.C: Remove duplication. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* PR sanitizer/60636 */ | ||
/* { dg-do run } */ | ||
/* { dg-options "-fsanitize=undefined" } */ | ||
|
||
volatile long long int a; | ||
|
||
int | ||
main () | ||
{ | ||
long long int u = -__LONG_LONG_MAX__ - 1; | ||
a = u > 0 ? u : -u; | ||
return 0; | ||
} | ||
|
||
/* { dg-output "negation of -9223372036854775808 cannot be represented in type 'long long int'" } */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters