mirror of
https://github.com/bitwiseworks/gcc-os2.git
synced 2026-02-14 06:04:44 +00:00
Investigate why alignas(8) doesn't always work #36
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 (Aug 28, 2020).
As Chromium tests show (see https://github.com/bitwiseworks/qtwebengine-chromium-os2/issues/20#issue-686420732),
alignas(8)is not always respected by GCC when allocating variables on the stack. Most of the time it works (i.e. variables get stack addresses ending with either 0x0 or 0x8) but occasionally something breaks and variables end up at "odd" addresses ending with 0x4 or 0xC. The Mojo component in Chromium is pretty strict about that and crashes the application on alignment mismatch.@dmik commented on GitHub (Aug 28, 2020):
Note that I could not reproduce it in a simple test case. The problem can only be observed within the huge Chromium context so far.
@dmik commented on GitHub (Jun 30, 2023):
Actually, we already have another ticket for this task, #11. Closing this in favour of that.