aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2020-05-15 17:18:41 +0200
committerAldy Hernandez <aldyh@redhat.com>2020-05-15 17:18:41 +0200
commit7b61d7a7338462ddf0f8cae92a1236444bb799e3 (patch)
tree5383ca8eac4a714e6c1a288e7a8e4f9610e6ba11 /gcc
parente80f12ca100111aa13001ef427856e04d329a61f (diff)
downloadgcc-7b61d7a7338462ddf0f8cae92a1236444bb799e3.zip
gcc-7b61d7a7338462ddf0f8cae92a1236444bb799e3.tar.gz
gcc-7b61d7a7338462ddf0f8cae92a1236444bb799e3.tar.bz2
Fix undefined behavior in pr33922.c.
It was causing evrp to perform an undefined transformation that rvrp was not doing and causing a trap.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/pr33922.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr33922.c b/gcc/testsuite/gcc.dg/tree-ssa/pr33922.c
index 5e59a3f..f07995f 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/pr33922.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/pr33922.c
@@ -15,9 +15,8 @@ typedef struct
ProtocolOperations;
static const ProtocolOperations *protocol;
int
-brl_readCommand (BrailleDisplay * brl)
+brl_readCommand (BrailleDisplay * brl, unsigned long int keys)
{
- unsigned long int keys;
int command;
int keyPressed;
unsigned char routingKeys[200];