public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-4287] Fix pr111456-1.c for targets that use unsigned char by default
@ 2023-09-26 22:04 Andrew Pinski
  0 siblings, 0 replies; only message in thread
From: Andrew Pinski @ 2023-09-26 22:04 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:12039c9f40a81605e59951f80007827bc0413573

commit r14-4287-g12039c9f40a81605e59951f80007827bc0413573
Author: Andrew Pinski <pinskia@gmail.com>
Date:   Tue Sep 26 15:00:38 2023 -0700

    Fix pr111456-1.c for targets that use unsigned char by default
    
    This fixes the testcase to use an explicit `signed char` instead of plain `char`.
    
    Committed as obvious after a test with a cross to powerpc64-linux-gnu and x86_64-linux-gnu.
    
    gcc/testsuite/ChangeLog:
    
            PR testsuite/111603
            * gcc.dg/tree-ssa/pr111456-1.c: Use `signed char` instead of plain `char`.

Diff:
---
 gcc/testsuite/gcc.dg/tree-ssa/pr111456-1.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr111456-1.c b/gcc/testsuite/gcc.dg/tree-ssa/pr111456-1.c
index 8a2f730b387..ffff664a1af 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/pr111456-1.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/pr111456-1.c
@@ -5,14 +5,14 @@
 void foo(void);
 static int i;
 static int *j = &i;
-static char l;
-static void(a)(char) {}
+static signed char l;
+static void(a)(signed char) {}
 static short(b)(short c, short d) { return c - d; }
 static short(e)(short f, int g) {
     return f < 0 || g < 0 || g >= 32 ? f : f >> g;
 }
 static short(h)(short f, int g) { return g >= 2 ?: f >> g; }
-static char k(char m, short n) {
+static signed char k(signed char m, short n) {
     short o;
     int *p = &i;
     if (!(((m) >= 1) && ((m) <= 1))) {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-09-26 22:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-26 22:04 [gcc r14-4287] Fix pr111456-1.c for targets that use unsigned char by default Andrew Pinski

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).