about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorDaniel Klauer <daniel.c.klauer@web.de>2017-09-22 00:36:10 +0200
committerDaniel Klauer <daniel.c.klauer@web.de>2017-09-28 22:06:54 +0200
commitc2fe69b9bd410885b51d034628e0403e882689da (patch)
tree2b035ecae3f7f8f3e5a671abf099015cc3018f38 /src/rustllvm/RustWrapper.cpp
parent6c9a4ba8eb2badef6f1ff040e61e4fe494585d79 (diff)
downloadrust-c2fe69b9bd410885b51d034628e0403e882689da.tar.gz
rust-c2fe69b9bd410885b51d034628e0403e882689da.zip
rustc: Fix main() entry point signature on 64bit
To match the C signature, main() should be generated with C int type
for the argc parameter and result, i.e. i32 instead of i64 on 64bit.

That way it no longer relies on the upper 32 bits being zero, which I'm
not sure is guaranteed by ABIs or startup code.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions