-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Description
| Bugzilla Link | 3681 |
| Resolution | FIXED |
| Resolved on | Feb 22, 2010 12:41 |
| Version | unspecified |
| OS | Windows XP |
| Blocks | llvm/llvm-bugzilla-archive#3696 |
| CC | @efriedma-quic |
Extended Description
1>root@one /tmp# cat x.c
int
main(void)
{
return (0);
}
0>root@one /tmp# ccc -m32 -o x x.c
/tmp/tmphmp52_.s: Assembler messages:
/tmp/tmphmp52_.s:9: Error: suffix or operands invalid for push' /tmp/tmphmp52_.s:10: Error: suffix or operands invalid for movq'
/tmp/tmphmp52_.s:11: Error: -4(%rbp)' is not a valid 32 bit base/index expression /tmp/tmphmp52_.s:12: Error: -4(%rbp)' is not a valid 32 bit base/index expression
/tmp/tmphmp52_.s:13: Error: suffix or operands invalid for `pop'
0>root@one /tmp# ccc -### -m32 -o x x.c
ccc version 1.0 (http://llvm.org/svn/llvm-project/cfe/trunk)
"clang" "-S" "-disable-free" "--relocation-model=static" "--disable-fp-elim" "--nozero-initialized-in-bss" "--unwind-tables=0" "--fmath-errno=1" "-o" "/tmp/tmpJU8kKq.s" "-x" "c" "x.c"
"gcc" "-m32" "-c" "-o" "/tmp/tmpvS8bRd.o" "-x" "assembler" "/tmp/tmpJU8kKq.s"
"gcc" "-m32" "-o" "x" "/tmp/tmpvS8bRd.o"
clang outputs 64bit asm and gcc tries to link it as 32bit.