* [COMMITTED] Make signness explicit in tree-ssa/pr102736.c
@ 2021-10-15 10:57 Aldy Hernandez
0 siblings, 0 replies; only message in thread
From: Aldy Hernandez @ 2021-10-15 10:57 UTC (permalink / raw)
To: GCC patches
This test is failing on ppc64* due to different default signness for
chars. Thanks to Richi for quickly pointing out the problem.
Tested on x86-64 Linux and ppc64le Linux.
gcc/testsuite/ChangeLog:
PR testsuite/pr102751
* gcc.dg/tree-ssa/pr102736.c: Make sign explicit.
---
gcc/testsuite/gcc.dg/tree-ssa/pr102736.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr102736.c b/gcc/testsuite/gcc.dg/tree-ssa/pr102736.c
index 7e556f01a86..c693a7189dd 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/pr102736.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/pr102736.c
@@ -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:
--
2.31.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-15 10:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-15 10:57 [COMMITTED] Make signness explicit in tree-ssa/pr102736.c Aldy Hernandez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).