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

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

https://savannah.nongnu.org/bugs/?63895

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.

    Herman


_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to