NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
toolchain/53909: broken types on aarch64
>Number: 53909
>Category: toolchain
>Synopsis: broken types on aarch64
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: toolchain-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jan 25 17:00:00 +0000 2019
>Originator: coypu
>Release: NetBSD 8.99.30
>Organization:
>Environment:
NetBSD planets 8.99.30 NetBSD 8.99.30 (GENERIC) #0: Thu Jan 10 15:02:02 IST 2019 fly@planets:/home/fly/obj2/sys/arch/amd64/compile/GENERIC amd64
>Description:
> cat aarch64-types.cpp
#include <cstddef>
int one() {
return sizeof(std::size_t); // 8
}
int two() {
return sizeof(size_t); // 4
}
> /current/obj-aarch64/tooldir.NetBSD-8.99.30-amd64/bin/aarch64--netbsd-g++ -S -o /dev/stdout aarch64-types.cpp
.arch armv8-a
.file "aarch64-types.cpp"
.text
.align 2
.global _Z3onev
.type _Z3onev, %function
_Z3onev:
.LFB2:
.cfi_startproc
mov w0, 8
ret
.cfi_endproc
.LFE2:
.size _Z3onev, .-_Z3onev
.align 2
.global _Z3twov
.type _Z3twov, %function
_Z3twov:
.LFB3:
.cfi_startproc
mov w0, 4
ret
.cfi_endproc
.LFE3:
.size _Z3twov, .-_Z3twov
.ident "GCC: (NetBSD nb4 20181109) 6.5.0"
This breaks building some C++ code:
/usr/include/g++/bits/basic_string.h:5630:23: note: mismatched types 'std::size_t {aka long unsigned int}' and 'size_t {aka unsigned int}' L"%Lf", __val);
>How-To-Repeat:
>Fix:
Home |
Main Index |
Thread Index |
Old Index