mirror of
https://github.com/bitwiseworks/gcc-os2.git
synced 2026-02-16 07:04:49 +00:00
Sort out alignof for 64 bit types #40
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dmik on GitHub (Apr 6, 2021).
Currently, the following test program
yields the following output
I.e. alignment of a 64 bit integer is 4 bytes. This freaks out e.g. a Qt5 QtBase test (
tst_QGlobal::qAlignOf()) which expects alignment for it to be 8 bytes as well. Same story fordouble.I wonder what our GCC should really return in such a case given that 32-bit Linux and Windows compilers return 8 (at least, according to the Qt test case).
Found when doing bitwiseworks/qt5-os2#16.