bitwiseworks / gcc-os2

Port of GCC compiler to OS/2
GNU General Public License v2.0
16 stars 2 forks source link

Investigate why alignas(8) doesn't always work #29

Closed dmik closed 1 year ago

dmik commented 4 years ago

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 4 years ago

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 1 year ago

Actually, we already have another ticket for this task, #11. Closing this in favour of that.