[PATCH] Fix Block scope compound literal's lifetime issues.

Martin Liška mliska at suse.cz
Wed Jun 12 02:01:25 CDT 2019


On 6/11/19 6:17 PM, Alexandre Julliard wrote:
> Martin Liška <mliska at suse.cz> writes:
> 
>> Hi.
>>
>> I'm sending patch that addresses miscompilation seen with GCC 9.
>>
>> Martin
>>
>> From 9ef1f211e4adb8855783bcbd93229386c1aeacf1 Mon Sep 17 00:00:00 2001
>> From: Martin Liska <mliska at suse.cz>
>> Date: Mon, 10 Jun 2019 10:57:32 +0200
>> Subject: [PATCH] Fix Block scope compound literal's lifetime issues.
>>
>> Starting from GCC 9, compound liferal's scope has changed:
>> https://www.gnu.org/software/gcc/gcc-9/porting_to.html#complit
>>
>> That's causing multiple issues, where one is analyzed here:
>> https://bugzilla.suse.com/show_bug.cgi?id=1137071#c4
>>
>> I used a script to replace macros with a static const variables:
>> https://gist.github.com/marxin/945c7bc01fe375141526284031e85db6
> 
> Most places already have the static const fallback, you can use that
> instead of adding another one.
> 

You are right, I'm sending update version of the patch.

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-Block-scope-compound-literal-s-lifetime-issues.patch
Type: text/x-patch
Size: 110408 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20190612/7088f0f5/attachment-0001.bin>


More information about the wine-devel mailing list