Re: [Tinycc-devel] __unaligned redefined on windows since afa05caa "Ignore _unaligned..."

2023-04-26 Thread wine.dev

Re: [Tinycc-devel] __unaligned redefined on windows since afa05caa "Ignore
_unaligned..." – Applied a patch for unaligned on mob.

    Herman [...]


Thanks Herman for the update


___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


Re: [Tinycc-devel] __unaligned redefined on windows since afa05caa "Ignore _unaligned..."

2023-04-15 Thread Herman ten Brugge via Tinycc-devel

On 4/2/23 00:15, wine@web.de wrote:

Thanks for the infos.
I will start ckecking, when i"m back at home sunday evening
also with __attrubute__((packed))

The change was used for bootstrap compile
of Open-Watcom-v2 on x86_64-linux with tcc
as an alternative to gcc or clang.


One of the "unaligned" variants is used in the OpenWatcom source.
Microsoft MSVC supports both variants and ARMasm at least one version.
Of course, OpenWatcom supports this also.


I can remember, that in a recent OpenWatcon dev session,
my grep for 'undefined' in the tcc root directory files found nothing
and with the patched tcc, bootstrap of OpenWatcom continues.
Normally, i use git grep, and that would have detected
the use in "_mingw.h".

Applied a patch for unaligned on mob.

    Herman


___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


Re: [Tinycc-devel] __unaligned redefined on windows since afa05caa "Ignore _unaligned..."

2023-04-01 Thread wine.dev

Thanks for the infos.
I will start ckecking, when i"m back at home sunday evening
also with __attrubute__((packed))

The change was used for bootstrap compile
of Open-Watcom-v2 on x86_64-linux with tcc
as an alternative to gcc or clang.


One of the "unaligned" variants is used in the OpenWatcom source.
Microsoft MSVC supports both variants and ARMasm at least one version.
Of course, OpenWatcom supports this also.


I can remember, that in a recent OpenWatcon dev session,
my grep for 'undefined' in the tcc root directory files found nothing
and with the patched tcc, bootstrap of OpenWatcom continues.
Normally, i use git grep, and that would have detected
the use in "_mingw.h".

-​-
Regards ... Detlef


___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


[Tinycc-devel] __unaligned redefined on windows since afa05caa "Ignore _unaligned..."

2023-04-01 Thread avih via Tinycc-devel
__unaligned is defined as _attribute__((packed))
at win32/include/_mingw.h and pretty much always included, so tcc
shouldn't blindly define it to something else in advance.

The warnings can be observed when compiling tcc on Windows, or
when using the resulting newly built tcc, or when cross-compiling
(to windows) e.g. on linux: ./configure --enable-cross && make

Wrapping the _unaligned and __unaligned definitions at
include/tccdefs.h inside #ifndef _WIN32 ... #endif _seem_ to work
(and seems it should start on column 4 and not 1, see top comment),
but I'm not pushing this fix because I'm not sure it's right.

Preferably, the original author (Detlef) pushes a fix.

- avih

___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel