[PATCH] cdefs: allow __attribute__ on tcc

Collin Funk collin.funk1@gmail.com
Thu Oct 30 23:16:59 GMT 2025


Eric Wong <normalperson@yhbt.net> writes:

> According to the tcc (tiny C compiler) Changelog, tcc supports
> __attribute__ since 0.9.3.  Looking at history of tcc at
> <https://repo.or.cz/tinycc.git>, __attribute__ support was added
> in commit 14658993425878be300aae2e879560698e0c6c4c on 2002-01-03,
> which also looks like the release of 0.9.3.  While I'm unable to
> find release tags for tcc before 0.9.18 (2003-04-14), the next
> release (0.9.28) will include __attribute__((cleanup(func)) which
> I rely on.
>
> Signed-off-by: Eric Wong <normalperson@yhbt.net>
> ---
>  This change also applies to glibc (where I encounted the problem),
>  but glibc is a bigger source tree and I'm HW constrained, so I'd
>  appreciate this change also being applied to glibc.
>  Thanks.  I have copyright assignments on file with the FSF.
>
>  ChangeLog   | 5 +++++
>  lib/cdefs.h | 2 +-
>  2 files changed, 6 insertions(+), 1 deletion(-)

Reviewed-by: Collin Funk <collin.funk1@gmail.com>

I can adapt the patch to glibc and commit it under your name.

Are you okay with me removing the Signed-off-by to make it clear the
change is under the glibc copyright assignment you have, instead of the
DCO?

Thanks,
Collin


More information about the Libc-alpha mailing list