Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

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

Closed Quuxplusone closed 13 years ago

Quuxplusone commented 14 years ago
Bugzilla Link PR5852
Status RESOLVED WONTFIX
Importance P normal
Reported by Sobirari Muhomori (ga55gees6m@sneakemail.com)
Reported on 2009-12-22 04:12:52 -0800
Last modified on 2011-04-08 13:28:18 -0700
Version 2.6
Hardware PC Windows XP
CC clattner@nondot.org, llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also

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

Quuxplusone commented 14 years ago

Please attach a small testcase.

Quuxplusone 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
Quuxplusone 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