Torvald Riegel
2009-Sep-03 12:49 UTC
[LLVMdev] llvm-gcc ignores function attributes of template functions?
Hi, llvm-gcc of LLVM 2.5 seems to ignore function attributes of template functions. For example, it doesn't set the noinline attribute, and it doesn't warn on unknown attribute names. Is this known / intended behavior? Thanks, Torvald
Eli Friedman
2009-Sep-03 20:58 UTC
[LLVMdev] llvm-gcc ignores function attributes of template functions?
On Thu, Sep 3, 2009 at 5:49 AM, Torvald Riegel<torvald at se.inf.tu-dresden.de> wrote:> Hi, > > llvm-gcc of LLVM 2.5 seems to ignore function attributes of template > functions. For example, it doesn't set the noinline attribute, and it doesn't > warn on unknown attribute names. Is this known / intended behavior?Testcase? Seems to work fine with trunk; you might want to try with that or the 2.6 prerelease. -Eli
Torvald Riegel
2009-Sep-04 12:38 UTC
[LLVMdev] llvm-gcc ignores function attributes of template functions?
On Thursday 03 September 2009 14:49:51 Torvald Riegel wrote:> llvm-gcc of LLVM 2.5 seems to ignore function attributes of template > functions. For example, it doesn't set the noinline attribute, and it > doesn't warn on unknown attribute names. Is this known / intended > behavior?Actually, this happens just for template methods of template classes (with the 2.6 branch of llvm-gcc). I opened bug 4884 for this. Torvald
Possibly Parallel Threads
- [LLVMdev] different layout of structs for llc vs. llvm-gcc
- [LLVMdev] different layout of structs for llc vs. llvm-gcc
- [LLVMdev] different layout of structs for llc vs. llvm-gcc
- [LLVMdev] different layout of structs for llc vs. llvm-gcc
- [LLVMdev] is there a compiler barrier that is effective at codegen level?