https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68563
Bug ID: 68563
Summary: LTO bootstrap fails on aarch64-linux-gnu
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Keywords: build
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: ktkachov at gcc dot gnu.org
Target Milestone: ---
Target: aarch64-linux-gnu
An aarch64-none-linux-gnu native LTO bootstrap fails for me.
configure line is --enable-languages=c,c++,fortran
--with-build-config=bootstrap-lto.
I'm seeing a number of -Werror=lto-type-mismatch failures in libdecnumber,
including:
$SRC/libdecnumber/dpd/decimal32.c:53:0: error: type of ‘decDigitsFromDPD’ does
not match original declaration [-Werror=lto-type-mismatch]
extern void decDigitsFromDPD(decNumber *, const uInt *, Int);
$SRC/libdecnumber/dpd/decimal128.c:52:0: error: type of ‘decDigitsFromDPD’ does
not match original declaration [-Werror=lto-type-mismatch]
extern void decDigitsFromDPD(decNumber *, const uInt *, Int);
$SRC/libdecnumber/dpd/decimal64.c:741:0: note: ‘decDigitsFromDPD’ was
previously declared here
void decDigitsFromDPD(decNumber *dn, const uInt *sour, Int declets) {
$SRC/libdecnumber/dpd/decimal64.c:741:0: note: code may be misoptimized unless
-fno-strict-aliasing is used
$SRC/libdecnumber/dpd/decimal32.c:52:0: error: type of ‘decDigitsToDPD’ does
not match original declaration [-Werror=lto-type-mismatch]
extern void decDigitsToDPD(const decNumber *, uInt *, Int);
$SRC/libdecnumber/dpd/decimal128.c:53:0: error: type of ‘decDigitsToDPD’ does
not match original declaration [-Werror=lto-type-mismatch]
extern void decDigitsToDPD(const decNumber *, uInt *, Int);
$SRC/libdecnumber/dpd/decimal64.c:615:0: note: ‘decDigitsToDPD’ was previously
declared here
void decDigitsToDPD(const decNumber *dn, uInt *targ, Int shift) {
$SRC/libdecnumber/dpd/decimal64.c:615:0: note: code may be misoptimized unless
-fno-strict-aliasing is used
$SRC/libdecnumber/decNumber.h:150:0: error: type of ‘decNumberPlus’ does not
match original declaration [-Werror=lto-type-mismatch]
decNumber * decNumberPlus(decNumber *, const decNumber *, decContext *);
$SRC/libdecnumber/decNumber.h:150:0: error: type of ‘decNumberPlus’ does not
match original declaration [-Werror=lto-type-mismatch]
decNumber * decNumberPlus(decNumber *, const decNumber *, decContext *);
$SRC/libdecnumber/decNumber.h:150:0: error: type of ‘decNumberPlus’ does not
match original declaration [-Werror=lto-type-mismatch]
decNumber * decNumberPlus(decNumber *, const decNumber *, decContext *);