This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PING] [PATCH] Avoid excessive function type casts with splay-trees
- From: Bernd Edlinger <bernd dot edlinger at hotmail dot de>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Jakub Jelinek <jakub at redhat dot com>
- Date: Thu, 17 May 2018 13:21:48 +0000
- Subject: [PING] [PATCH] Avoid excessive function type casts with splay-trees
- References: <DB6PR0701MB266437EB2B10745722CDB8B6E40B0@DB6PR0701MB2664.eurprd07.prod.outlook.com> <AM5PR0701MB2657E35007D9ED3FA811A876E4870@AM5PR0701MB2657.eurprd07.prod.outlook.com>
Ping...
On 05/03/18 22:13, Bernd Edlinger wrote:
> Hi,
>
> this is basically the same patch I posted a few months ago,
> with a few formatting nits by Jakub fixed.
>
> Bootstrapped and reg-tested again with current trunk.
>
> Is it OK for trunk?
>
>
> Bernd.
>
> On 12/15/17 11:44, Bernd Edlinger wrote:
>> Hi,
>>
>> when working on the -Wcast-function-type patch I noticed some rather
>> ugly and non-portable function type casts that are necessary to
>> accomplish
>> some actually very simple tasks.
>>
>> Often functions taking pointer arguments are called with a different
>> signature
>> taking uintptr_t arguments, which is IMHO not really safe to do...
>>
>> The attached patch adds a context argument to the callback functions but
>> keeps the existing interface as far as possible.
>>
>>
>> Bootstrapped and reg-tested on x86_64-pc-linux-gnu.
>> Is it OK for trunk?
>>
>>
>> Thanks
>> Bernd.
>>