[Bug c/64185] Optimized code gives unexpected results

2014-12-08 Thread zaz at ua7 dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64185 --- Comment #4 from zaz at ua7 dot net --- > > this: > > struct PascalString > > { > > int length; > > char data[0]; > > }; > > And then just allocate necessary memory block and able access to

[Bug c/64185] Optimized code gives unexpected results

2014-12-08 Thread zaz at ua7 dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64185 --- Comment #2 from zaz at ua7 dot net --- But this is deliberate out-of-bands. IE in this test application searchDict2 lookup all KV fields in dict structure in loop based on kv1 offset: kv1 + 0 - this is pointer to kv1 kv1 + 1 - this is pointer

[Bug c/64185] New: Optimized code gives unexpected results

2014-12-04 Thread zaz at ua7 dot net
Assignee: unassigned at gcc dot gnu.org Reporter: zaz at ua7 dot net Created attachment 34191 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34191&action=edit Test code for reproduce problem Hello I found a open-source SIP library sofia-sip-ua work incorrect with GCC 4.