Skip to content

ccc -m32 doesn't work #4053

@pwo

Description

@pwo
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl'

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions