]> gcc.gnu.org Git - gcc.git/commitdiff
Make signness explicit in tree-ssa/pr102736.c
authorAldy Hernandez <aldyh@redhat.com>
Fri, 15 Oct 2021 10:53:32 +0000 (12:53 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Fri, 15 Oct 2021 10:58:59 +0000 (12:58 +0200)
This test is failing on ppc64* due to different default signness for
chars.

Tested on x86-64 Linux and ppc64le Linux.

PR testsuite/pr102751

gcc/testsuite/ChangeLog:

* gcc.dg/tree-ssa/pr102736.c: Make sign explicit.

gcc/testsuite/gcc.dg/tree-ssa/pr102736.c

index 7e556f01a86e0a07152fd8d077b50ad8684508b6..c693a7189dd277592a66c383246b7b5924d47093 100644 (file)
@@ -3,8 +3,8 @@
 
 int a, b = -1, c;
 int d = 1;
-static inline char e(char f, int g) { return g ? f : 0; }
-static inline char h(char f) { return f < a ? f : f < a; }
+static inline signed char e(signed char f, int g) { return g ? f : 0; }
+static inline signed char h(signed char f) { return f < a ? f : f < a; }
 static inline unsigned char i(unsigned char f, int g) { return g ? f : f > g; }
 void j() {
 L:
This page took 0.08804 seconds and 5 git commands to generate.