[Mesa-stable] [Mesa-dev] [PATCH] ralloc: Use __attribute__((destructor)) instead of atexit(3)
Jean-Sébastien Pédron
jean-sebastien.pedron at dumbbell.fr
Mon Sep 7 02:03:53 PDT 2015
On 04.09.2015 01:37, Matt Turner wrote:
>> +__attribute__((destructor))
>
> You need to test for this support in configure.ac. It's as simple as
> adding a call to AX_GCC_FUNC_ATTRIBUTE in the existing alphabetized
> list and then a little bit of preprocessor in src/util/macros.h. (I
> think you should put "DESTRUCTOR" or whatever macro name you choose on
> the same line with "static void" like is done in intel_tiled_memcpy.c
> for FLATTEN)
Thanks, I modified the patch.
I first sent the patch using Git, but probably due to some grey-listing
somewhere, it took a while to reach the mailing-list. Meanwhile, I filed
a bug in Bugzilla [1]. To avoid confusion, do you prefer I send the new
patch to the list too or should I continue with Bugzilla?
[1] https://bugs.freedesktop.org/show_bug.cgi?id=91869
--
Jean-Sébastien Pédron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/mesa-stable/attachments/20150907/482b56fc/attachment.sig>
More information about the mesa-stable
mailing list