[cfe-dev] clang bug? Miscompilation of array of unsigned long long

Edward Meewis ed at extraordinarymachine.nl
Tue Jul 27 02:32:36 PDT 2010


  Hi Doug,

Thanks for your reply. Answers below.

Regards, Ed.

On 26-07-10 16:23, Douglas Gregor wrote:
> No idea, and I'm not able to reproduce it on my platform (Darwin). 
> Could you give me the output of clang -v arrTest.c
>    and clang -### arrTest.c , so I can get all of the version/triple information?
>
> 	- Doug

[emeewis at jazzed]~>clang -v arrTest.c
clang version 2.8 (trunk 109367)
Target: i386-unknown-freebsd8.0
Thread model: posix
  "/usr/local/bin/clang" -cc1 -triple i386-unknown-freebsd8.0 -S 
-disable-free -main-file-name arrTest.c -mrelocation-model static 
-mdisable-fp-elim -mconstructor-aliases -target-cpu pentium4 -v 
-resource-dir /usr/local/lib/clang/2.8 -ferror-limit 19 -fmessage-length 
80 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o 
/home/emeewis/tmp/cc-z0moJd.s -x c arrTest.c
clang -cc1 version 2.8 based upon llvm 2.8svn hosted on 
i386-unknown-freebsd8.0
#include "..." search starts here:
#include <...> search starts here:
  /usr/local/include
  /usr/local/lib/clang/2.8/include
  /usr/include
End of search list.
  "/usr/local/bin/as" --32 -o /home/emeewis/tmp/cc-CNRQpM.o 
/home/emeewis/tmp/cc-z0moJd.s
  "/usr/local/bin/ld" --eh-frame-hdr -dynamic-linker 
/libexec/ld-elf.so.1 -m elf_i386_fbsd -o a.out /usr/lib/crt1.o 
/usr/lib/crti.o /usr/lib/crtbegin.o /home/emeewis/tmp/cc-CNRQpM.o -lgcc 
--as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s 
--no-as-needed /usr/lib/crtend.o /usr/lib/crtn.o

[emeewis at jazzed]~>clang -### arrTest.c
clang version 2.8 (trunk 109367)
Target: i386-unknown-freebsd8.0
Thread model: posix
  "/usr/local/bin/clang" "-cc1" "-triple" "i386-unknown-freebsd8.0" "-S" 
"-disable-free" "-main-file-name" "arrTest.c" "-mrelocation-model" 
"static" "-mdisable-fp-elim" "-mconstructor-aliases" "-target-cpu" 
"pentium4" "-resource-dir" "/usr/local/lib/clang/2.8" "-ferror-limit" 
"19" "-fmessage-length" "80" "-fgnu-runtime" "-fdiagnostics-show-option" 
"-fcolor-diagnostics" "-o" "/home/emeewis/tmp/cc-7YPMan.s" "-x" "c" 
"arrTest.c"
  "/usr/local/bin/as" "--32" "-o" "/home/emeewis/tmp/cc-8TH0sM.o" 
"/home/emeewis/tmp/cc-7YPMan.s"
  "/usr/local/bin/ld" "--eh-frame-hdr" "-dynamic-linker" 
"/libexec/ld-elf.so.1" "-m" "elf_i386_fbsd" "-o" "a.out" 
"/usr/lib/crt1.o" "/usr/lib/crti.o" "/usr/lib/crtbegin.o" 
"/home/emeewis/tmp/cc-8TH0sM.o" "-lgcc" "--as-needed" "-lgcc_s" 
"--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" 
"/usr/lib/crtend.o" "/usr/lib/crtn.o"




More information about the cfe-dev mailing list