Bug#846214: gcc-6: wrong code generation in protobuf-c testsuite, adding printf works around
On 01.12.2016 22:38, Thorsten Glaser wrote:
> On Thu, 1 Dec 2016, Thorsten Glaser wrote:
>
>> On Thu, 1 Dec 2016, Matthias Klose wrote:
>>
>>> - please could you reduce the test case to just run the failing test?
>>
>> I’ll try…
>
> OK. I’ve got it cut down, both regular and preprocessed
> versions are attached.
>
> If I comment out either bd_empty or bd_random in…
>
> DO_TEST (bd_empty, test_required_bytes_empty);
> DO_TEST (bd_hello, test_required_bytes_hello);
> DO_TEST (bd_random, test_required_bytes_random);
>
> … the tests also pass, so this appears to be the minimum,
> despite bd_hello being the aborting one.
cool, thanks! bonus questions:
- does the test pass with -O1, if yes can you identify
the -O2 -fno-* flag?
- do the above with -O0
- do you get warnings when you run the test with
the address and undefined sanitizers?
Matthias
Reply to: