llvm-gcc emits llvm assembly with incomplete target data layout #1614
Labels
bugzilla
Issues migrated from bugzilla
llvm-tools
All llvm tools that do not have corresponding tag
miscompilation
Extended Description
When emitting llvm code (-emit-llvm), llvm-gcc generates a Target Data Layout of
"e-p:32:32" for x86-pc-linux-gnu. This is insufficient for some programs as the
defaults will use f64:64:64 whereas the correct alignment is f64:32:64. This
causes a problem in accessing fields of structures that use double/long long.
The text was updated successfully, but these errors were encountered: