llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.32k stars 11.21k forks source link

llvm-gcc doesn't generate proper attributes in IR with -mrtd option #6224

Closed llvmbot closed 13 years ago

llvmbot commented 14 years ago
Bugzilla Link 5852
Resolution WONTFIX
Resolved on Apr 08, 2011 13:28
Version 2.6
OS Windows XP
Reporter LLVM Bugzilla Contributor
CC @lattner

Extended Description

on windows with this option gcc treats functions as stdcall, but doesn't generate stdcall attributes in IR.

lattner commented 13 years ago

LLVM-GCC has reached its end of life as far as llvm.org releases go. Please migrate to Clang or DragonEgg when possible. The llvm-gcc SVN repo will still continue to exist, so additional patches can go into it if you so desire, but since we have no more releases of it coming, it doesn't make sense to track bugs for it anymore.

If this is a problem that still exists with clang or DragonEgg, please file a new bug to track it. Thanks!

-Chris

llvmbot commented 14 years ago

--- tmp.c --- int MyFunc(int a) { return a; }

llvm-gcc -mrtd -emit-llvm -S tmp.c -o tmp.ll --- tmp.ll --- define i32 @​MyFunc(i32 %a) nounwind {

stdcall attribute is missing

lattner commented 14 years ago

Please attach a small testcase.