Using TinyCC to compile binutils fails in 2.39+

Andrew Pinski pinskia@gmail.com
Wed May 28 21:54:07 GMT 2025
On Wed, May 28, 2025 at 11:32 AM Ludvig Christensen via Binutils
<binutils@sourceware.org> wrote:
>
> Hi,
>
> I have been using TinyCC to compile binutils and just wanted to drop an FYI:
>
> - 2.38 is successfully compiled using TinyCC
>
> - 2.39-2.41: TinyCC fail because of GNU C macros in 'gprofng/common/gp-defs.h' Lines 42-50

Those macros are required by the ABI (C extension or full ABI) of each
of those targets.
What macro does tinyCC define for x86_64? or rather the target it is
being compiled for?
Maybe it should have been __x86_64__ instead of the current __x86_64 .

>
> - 2.42-2.44: TinyCC fail to recognise the TLS macro on line 733-736

line of which file? Because I can't figure it out.

I can only find __thread in one place:
gprofng/libcollector/heaptrace.c which I suspect could be changed to
_Thread_local since C11 is common enough.

Thanks,
Andrew

>
>
> I am unsure if it is of interest to support TinyCC but thought I'd let you guys know in case it is.
>
>
> Kind regards,
> Ludvig
>
> ________________________________
>
> Observera att avsändaren inte är anställd vid Kungliga Tekniska högskolan. KTH ansvarar inte för åsikter, påståenden eller personuppgifter som förmedlas i detta meddelande.
>
> Please note that the sender is not employed by KTH Royal Institute of Technology. KTH is not responsible for the opinions, claims or personal data conveyed in this message.


More information about the Binutils mailing list