aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@gcc.gnu.org>2014-12-11 22:16:09 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2014-12-11 22:16:09 +0000
commit3334c725640bd74923323e9e728d348ff7ae7c5d (patch)
tree77bde088a6e08023b2ac567be1aafccec4da43e2 /gcc
parent17e0fc9202d9edf96a8c70e54f9a105f8d477016 (diff)
downloadgcc-3334c725640bd74923323e9e728d348ff7ae7c5d.zip
gcc-3334c725640bd74923323e9e728d348ff7ae7c5d.tar.gz
gcc-3334c725640bd74923323e9e728d348ff7ae7c5d.tar.bz2
builtin-arith-overflow-1.c (fn2): Take signed char.
* gcc.dg/builtin-arith-overflow-1.c (fn2): Take signed char. (fn3): Likewise. From-SVN: r218641
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog12
-rw-r--r--gcc/testsuite/gcc.dg/builtin-arith-overflow-1.c4
2 files changed, 10 insertions, 6 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index e85830c..c9c94ff 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,11 +1,15 @@
+2014-12-11 Eric Botcazou <ebotcazou@adacore.com>
+
+ * gcc.dg/builtin-arith-overflow-1.c (fn2): Take signed char.
+ (fn3): Likewise.
+
2014-12-11 Jan Hubicka <hubicka@ucw.cz>
PR ipa/61324
- * testsuite/g++.dg/pr61324.C: New testcase by Trevor Saunders.
- * testsuite/g++.dg/tm/pr51411-2.C: Update se the extern function is
+ * g++.dg/pr61324.C: New testcase by Trevor Saunders.
+ * g++.dg/tm/pr51411-2.C: Update se the extern function is
not eliminated early.
- * testsuite/gcc.target/i386/pr57756.c: Turn extern inline into static
- inline.
+ * gcc.target/i386/pr57756.c: Turn extern inline into static inline.
2014-12-11 Richard Biener <rguenther@suse.de>
diff --git a/gcc/testsuite/gcc.dg/builtin-arith-overflow-1.c b/gcc/testsuite/gcc.dg/builtin-arith-overflow-1.c
index b9c1517..4f4afd5 100644
--- a/gcc/testsuite/gcc.dg/builtin-arith-overflow-1.c
+++ b/gcc/testsuite/gcc.dg/builtin-arith-overflow-1.c
@@ -17,7 +17,7 @@ fn1 (int x, unsigned int y)
/* MUL_OVERFLOW should be folded into unsigned multiplication,
because ovf is never used. */
__attribute__((noinline, noclone)) int
-fn2 (char x, long int y)
+fn2 (signed char x, long int y)
{
short int res;
int ovf = __builtin_mul_overflow (x, y, &res);
@@ -31,7 +31,7 @@ fn2 (char x, long int y)
/* ADD_OVERFLOW should be folded into unsigned addition,
because it never overflows. */
__attribute__((noinline, noclone)) int
-fn3 (char x, unsigned short y, int *ovf)
+fn3 (signed char x, unsigned short y, int *ovf)
{
int res;
*ovf = __builtin_add_overflow (x, y, &res);