https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125451

--- Comment #9 from Thomas Wolff <towo at computer dot org> ---
Actually, checking again, it turns out the difference is in the assembly files, 
despite the tiny apparent difference, and I must have been confused with my
assessment about it and blaming the linking step. So it looks it's in the
compilation step.
Test case:
compile gcc -S wcwidth-test.c with gcc 13.4.0 and 16.0.1 respectively, to get
wcwidth-test.13.4.0.s  wcwidth-test.16.0.1.s
Then
gcc -o wcwidth-test wcwidth-test.13.4.0.s will produce a good binary on both
systems, 
gcc -o wcwidth-test wcwidth-test.16.0.1.s will produce the bug on both systems;
also as and ld are both from binutils 2.46 on both systems alike.

Reply via email to