Skip to content

Commit a32ee5d

Browse files
committedMar 10, 2023
8303949: gcc10 warning Linux ppc64le - note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5
Reviewed-by: erikj, mdoerr
1 parent 01312a0 commit a32ee5d

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, 2022, 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
@@ -189,6 +189,10 @@ AC_DEFUN([FLAGS_SETUP_WARNINGS],
189189
WARNINGS_ENABLE_ALL_CXXFLAGS="$WARNINGS_ENABLE_ALL_CFLAGS $WARNINGS_ENABLE_ADDITIONAL_CXX"
190190
191191
DISABLED_WARNINGS="unused-parameter unused"
192+
# gcc10/11 on ppc generate lots of abi warnings about layout of aggregates containing vectors
193+
if test "x$OPENJDK_TARGET_CPU_ARCH" = "xppc"; then
194+
DISABLED_WARNINGS="$DISABLED_WARNINGS psabi"
195+
fi
192196
;;
193197
194198
clang)

0 commit comments

Comments
 (0)
Please sign in to comment.