This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/49620] piece of code from modification to dvblast but cant get it to compile and run correctly
- From: "joolzg at btinternet dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 3 Jul 2011 21:06:10 +0000
- Subject: [Bug c/49620] piece of code from modification to dvblast but cant get it to compile and run correctly
- Auto-submitted: auto-generated
- References: <bug-49620-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49620
--- Comment #2 from julian gardner <joolzg at btinternet dot com> 2011-07-03 21:06:07 UTC ---
(In reply to comment #1)
> Please add a complete self-contained test case. (The given test case isn't.)
> Also please also indicate with which gcc options you compiled the test case.
Ive given the source and a preprocessed version of the complete file
compiled with
gcc -Wall -O3 -fomit-frame-pointer -Wextra -g
-I/usr/src/kernel/linux-2.6.29.1/include -c -o file.o file.c
Problem is that adding removing code seems to make the problem
appear/disappear.
I do hope that this is enough, as it seems that the problem is in the
i_len2 = fread( ....)
if( i_len2 < 188)
cant be a much simpler test case
joolz