[Top][All Lists]

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

Re: [Tinycc-devel] Another bug in tcc: Wrong array initialization (yarpg

From: Herman ten Brugge
Subject: Re: [Tinycc-devel] Another bug in tcc: Wrong array initialization (yarpgen.v1)
Date: Thu, 9 Mar 2023 15:58:45 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0

On 3/8/23 17:44, Detlef Riekenberg wrote:

I added another tcc bug report, discovered by yarpgen (v1).


Initialization of an array (of struct tf_3_struct_2) is broken.

tf_3_struct_2 contains some structs of type tf_3_struct_1
and tf_3_struct_1 contains bitfields and non bitfield member,
and tcc always fails to initialize the member_1_3 of tf_3_struct_1

In the attached source files in the bug report, i split the initialization
of tf_3_array_5 in multiple lines.

The original initialization was in one line, similar to tf_3_array_6 and tf_3_array_7.
(the source for tf_3_array_6 and tf_3_array_7 is commented out by default)

I just pushed a fix. The bitfield padding with size 32 dif not work.


reply via email to

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