|
From: Mark W. <ma...@so...> - 2020-01-23 20:41:35
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=ee18ab11ddf41a7a484fea01e8738c32bae630d9 commit ee18ab11ddf41a7a484fea01e8738c32bae630d9 Author: Mark Wielaard <ma...@kl...> Date: Thu Jan 23 21:30:59 2020 +0100 Fix GCC10 issue in guest_s390_defs.h typedef enum type s390x_vec_op_t. GCC10 defaults to -fno-common which produces this error: guest_s390_defs.h:291: multiple definition of `s390x_vec_op_t This is because GCC10 detects there are multiple definitions of the variable s390x_vec_op_t. We don't want to define a variable though. We had wanted to define a type (one that currently isn't used). Fix this by making it a typedef enum. https://bugzilla.redhat.com/show_bug.cgi?id=1794482 Diff: --- VEX/priv/guest_s390_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VEX/priv/guest_s390_defs.h b/VEX/priv/guest_s390_defs.h index b9f038a..9f93cff 100644 --- a/VEX/priv/guest_s390_defs.h +++ b/VEX/priv/guest_s390_defs.h @@ -261,7 +261,7 @@ extern ULong last_execute_target; /* Vector operatons passed to s390x_dirtyhelper_vec_op(...) helper. Please don't change ordering of elements and append new items before S390_VEC_OP_LAST. */ -enum { +typedef enum { S390_VEC_OP_INVALID = 0, S390_VEC_OP_VPKS = 1, S390_VEC_OP_VPKLS = 2, |