tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Using tcc for reflection


From: rempas
Subject: Re: [Tinycc-devel] Using tcc for reflection
Date: Tue, 1 Feb 2022 22:07:14 +0100 (CET)

1 Φεβ 2022, 19:26 Από matz.tcc@frakked.de:

> This is deceptive!  The GNU libc headers unconditionally define 
> '__attribute__()' to nothing if the compiler isn't GCC, and not just 
> internally, so a declaration like:
>
> #include <stdio.h>
> ....
>
>  int __attribute__((whatever!)) avar;
>
> doesn't set any attribute at all :-/  Either do:
>
> #undef __attribute__
>
> after including all standard headers, or use the other form of that token:
>
>  int __attribute((cleanup(clean_up))) avar = 1;
>
>
> Ciao,
> Michael.
>
What the fuck? Why I didn't knew about this? Why isn't this mentioned anywhere 
(or is it and I'm just blind?)? This is a whole game changer!!!!

And I just blamed TCC for letting us compile code that does nothing without 
warning us. I offer a HUGE apology!

I'm sorry TCC developers!



reply via email to

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