Open Quuxplusone opened 14 years ago
Attached ioctl_bug.c
(1055 bytes, text/x-csrc): testcase to reproduce bug
This is a static analyzer warning. Move to that component.
Can you attached a preprocessed version of this file? I am not using Linux.
(In reply to comment #2)
> Can you attached a preprocessed version of this file? I am not using Linux.
>
Just a gcc -E output or something else?
Sorry for the wrong chosen component...
(In reply to comment #3)
> (In reply to comment #2)
> > Can you attached a preprocessed version of this file? I am not using Linux.
> >
>
> Just a gcc -E output or something else?
Yes, but use Clang instead of GCC.
$ clang -E bug.c -o bug.i
>
> Sorry for the wrong chosen component...
No problem at all!
Also, can you include the output of:
$ clang -c bug.c -###
This should be a bunch of command line flags, which should include architecture
specific flags that will help me reproduce your problem correctly on my machine.
Attached bug.i
(70747 bytes, application/octet-stream): Preprocessed version of bug.c
(In reply to comment #4)
> (In reply to comment #3)
> > (In reply to comment #2)
> > > Can you attached a preprocessed version of this file? I am not using
Linux.
> > >
> >
> > Just a gcc -E output or something else?
>
> Yes, but use Clang instead of GCC.
>
> $ clang -E bug.c -o bug.i
Of course Clang :)
Output sent as attached file.
> Also, can you include the output of:
>
> $ clang -c bug.c -###
>
> This should be a bunch of command line flags, which should include
architecture
> specific flags that will help me reproduce your problem correctly on my
> machine.
>
clang version 1.1 (trunk 93238)
Target: x86_64-unknown-linux-gnu
Thread model: posix
"/usr/local/bin/clang" "-cc1" "-triple" "x86_64-unknown-linux-gnu" "-S" "-disable-free" "-main-file-name" "bug.c" "-mrelocation-model" "static" "-mdisable-fp-elim" "-munwind-tables" "-target-cpu" "x86-64" "-resource-dir" "/usr/local/lib/clang/1.1" "-fmessage-length" "188" "-fgnu-runtime" "-fdiagnostics-show-option" "-fcolor-diagnostics" "-o" "/tmp/cc-2FWh0l.s" "-x" "c" "bug.c"
"/usr/bin/gcc" "-c" "-m64" "-o" "bug.o" "-x" "assembler" "/tmp/cc-2FWh0l.s"
ioctl_bug.c
(1055 bytes, text/x-csrc)bug.i
(70747 bytes, application/octet-stream)