Skip to content

Commit 752494f

Browse files
committed
8303949: gcc10 warning Linux ppc64le - note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5
Reviewed-by: phh Backport-of: a32ee5dd8b5d0b65b39d7a3f8bedc7c099987f6f
1 parent c005682 commit 752494f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

make/autoconf/flags-cflags.m4

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -188,6 +188,10 @@ AC_DEFUN([FLAGS_SETUP_WARNINGS],
188188
WARNINGS_ENABLE_ALL_CXXFLAGS="$WARNINGS_ENABLE_ALL_CFLAGS $WARNINGS_ENABLE_ADDITIONAL_CXX"
189189
190190
DISABLED_WARNINGS="unused-parameter unused"
191+
# gcc10/11 on ppc generate lots of abi warnings about layout of aggregates containing vectors
192+
if test "x$OPENJDK_TARGET_CPU_ARCH" = "xppc"; then
193+
DISABLED_WARNINGS="$DISABLED_WARNINGS psabi"
194+
fi
191195
;;
192196
193197
clang)

0 commit comments

Comments
 (0)