[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] alinged/unaligned on OpenBSD

From: Christian Jullien
Subject: [Tinycc-devel] alinged/unaligned on OpenBSD
Date: Mon, 25 Jan 2021 07:57:01 +0100

Hi Grischka,

Your last commit reverted alignment code introduced to support OpenBSD on arm.

Even it looks strange for you, as confirmed by an OpenBSD developer, arm by design requires alignment.

Your commit breaks the test suite:

Test: 96_nodata_wanted...

Bus error (core dumped)

--- 96_nodata_wanted.expect     Mon Jan 25 00:56:49 2021

+++ 96_nodata_wanted.output     Mon Jan 25 01:34:37 2021

@@ -12,15 +12,3 @@

96_nodata_wanted.c:25: warning: cast between pointer and integer of different size




-  8 - 8.0 - 8.0 - main - static string

-  333 44 555555 6 7

-size of data/text:

-  non-zero/non-zero



-size of data/text:

-  zero/zero



-a = 1



FYI, with Herman (esp. Herman) we added OpenBSD support for i386/x86_64/arm/arm64 which passed all the test. The good news is that tcc is now an official OpenBSD package which is great for the TinyCC popularity.

If, for probably good reasons, you don’t want alignment code for all platforms, can we add a new configuration option: --align or alike which will force alignment?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]