JikesRVM doesn't build with gcc 7 on Ubuntu

Description

None

Environment

GCC version is as follows
{{gcc --version
gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.}}

The error message is as follows
{{ [exec] gnu_java_math_GMP.c: In function ‘Java_gnu_java_math_GMP_natSetBitCount’:
[exec] gnu_java_math_GMP.c:1134:13: error: this statement may fall through [-Werror=implicit-fallthrough=]
[exec] res = mpz_popcount (_this);
[exec] ~~~^~~~~~~~~~~~~~~~~~~~~
[exec] gnu_java_math_GMP.c:1135:7: note: here
[exec] default:
[exec] ^~~~~~~}}

A potential workaround is to add -Wno-implicit-fallthrough to c.args in, say, build/hosts/x86_64-linux.properties

Status

Assignee

Erik Brangs

Reporter

Zixian Cai

Labels

None

External issue ID

None

Components

Fix versions

Affects versions

3.1.4

Priority

Medium
Configure