Bug#184161: gcc-3.2 produces bad code?
Package: gcc-3.2
Version: 3.2.3-0pre3
Distribution: sid
Jit icq transport (http://jit.jabberstudio.org/) does not work if compiled with
this gcc. With this one:
gcc -v
Reading specs from /packages/run/gcc-3.2/lib/gcc-lib/i686-pc-linux-gnu/3.2/specs
Configured with: ./configure --prefix=/packages/share/gcc-3.2
--exec-prefix=/packages/run/gcc-3.2
Thread model: posix
gcc version 3.2
works ok.
Problem is in jit/jit/message.c in function it_message.
starting at line 116:
unsigned char chat;
contact c;
// printf("Upper message: %s\n", body);
if(body == NULL) {
jutil_error(jp->x,
(terror){400,LNG_EMPTY_MESSAGE});
it_deliver(s->ti,jp->x);
return;
}
b = it_convert_utf82windows(jp->p,body);
// printf("After convert: %s\n", b);
uncomenting those printf solves the problem. b contains correct text else it is
equal to null string.
--
Lukáš Hejtmánek
Reply to: