Hi Everybody
This is a piece of code that compile as well and true by Tiny C Compiler ( tcc ) every time ..... But a week ago version of GCC was 12.2.0-14 and now 12.2.0-3 and both of them compile it wrongly and give garbage values most of times ( and correctly , some times ) . The Code :
You can replace the file with any file You want instead . But GCC compile and link it wrongly ...... GCC must be upgraded in Debian 12 Bookworm ...... I update and upgrade regularly ...... Can anyone report it to Debian bugs ? ( They gave me an example of bug report form but it was unclear to what I want to report )
This is a piece of code that compile as well and true by Tiny C Compiler ( tcc ) every time ..... But a week ago version of GCC was 12.2.0-14 and now 12.2.0-3 and both of them compile it wrongly and give garbage values most of times ( and correctly , some times ) . The Code :
Code:
#include <stdio.h>int main(){FILE * fp = fopen("/home/lovelorn/Pictures/post-3.jpeg", "rb");int n;for (int i = 0; i < 100; i++){fread(&n, 1, 1, fp);printf("%d\n ", n);}fclose(fp);return 0;}
Statistics: Posted by Hadi_Lovelorn — 2024-05-28 21:56 — Replies 2 — Views 40