> llvm-gcc doesn't support address spaces. This is a clang-only feature.However it could be implemented in llvm-gcc. Ciao, Duncan.
Juan Carlos Martinez Santos
2009-Oct-21 00:29 UTC
[LLVMdev] Using address space attribute in LLVM
Hello, I also found that llvm-gcc does not support the section attribute. Is there a common reason for that? Thanks, Juan Carlos On Tue, Oct 20, 2009 at 3:16 AM, Duncan Sands <baldrick at free.fr> wrote:> llvm-gcc doesn't support address spaces. This is a clang-only feature. >> > > However it could be implemented in llvm-gcc. > > Ciao, > > Duncan. >-- Juan Carlos -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091020/25c1b80e/attachment.html>
On Oct 20, 2009, at 5:29 PM, Juan Carlos Martinez Santos wrote:> Hello, > > I also found that llvm-gcc does not support the section attribute. > Is there a common reason for that?It should, do you have a testcase where gcc works but llvm-gcc doesn't? -Chris> > Thanks, > > Juan Carlos > > On Tue, Oct 20, 2009 at 3:16 AM, Duncan Sands <baldrick at free.fr> > wrote: > llvm-gcc doesn't support address spaces. This is a clang-only > feature. > > However it could be implemented in llvm-gcc. > > Ciao, > > Duncan. > > > > -- > Juan Carlos > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091020/8a600544/attachment.html>
On Oct 20, 2009, at 7:00 PM, Juan Carlos Martinez Santos wrote:> No. My reference point is CLANG.I don't understand what you are saying, does llvm-gcc disagree with clang? Does your example work with gcc? Please email llvmdev instead of me directly. -Chris> > Thanks, > > Juan Carlos > > On Tue, Oct 20, 2009 at 9:19 PM, Chris Lattner <clattner at apple.com> > wrote: > > On Oct 20, 2009, at 5:29 PM, Juan Carlos Martinez Santos wrote: > >> Hello, >> >> I also found that llvm-gcc does not support the section attribute. >> Is there a common reason for that? > > It should, do you have a testcase where gcc works but llvm-gcc > doesn't? > > -Chris > >> >> Thanks, >> >> Juan Carlos >> >> On Tue, Oct 20, 2009 at 3:16 AM, Duncan Sands <baldrick at free.fr> >> wrote: >> llvm-gcc doesn't support address spaces. This is a clang-only >> feature. >> >> However it could be implemented in llvm-gcc. >> >> Ciao, >> >> Duncan. >> >> >> >> -- >> Juan Carlos >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > > > > -- > Juan Carlos-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091020/bd0fb6b8/attachment.html>
Juan Carlos Martinez Santos
2009-Oct-21 17:28 UTC
[LLVMdev] Using address space attribute in LLVM
Hello Chris, My first impression was that LLVM-GCC does not support section attribute, but it was my bad. I was trying to specify a section attribute for a local variable. When I run the test in clang... it works as I expected; however, later I realized that both gcc and llvm-gcc do not allow it. My question is still live... why is the reason for that? Regards, Juan Carlos On Tue, Oct 20, 2009 at 11:50 PM, Chris Lattner <clattner at apple.com> wrote:> > On Oct 20, 2009, at 7:00 PM, Juan Carlos Martinez Santos wrote: > > No. My reference point is CLANG. > > > I don't understand what you are saying, does llvm-gcc disagree with clang? >Yes. llvm does not allow to specify a section attribute for local variables, but clang does.> Does your example work with gcc? >No. in this case, gcc and llvm-gcc generate the same error.> > Please email llvmdev instead of me directly. > > -Chris > > > Thanks, > > Juan Carlos > > On Tue, Oct 20, 2009 at 9:19 PM, Chris Lattner <clattner at apple.com> wrote: > >> >> On Oct 20, 2009, at 5:29 PM, Juan Carlos Martinez Santos wrote: >> >> Hello, >> >> I also found that llvm-gcc does not support the section attribute. Is >> there a common reason for that? >> >> >> It should, do you have a testcase where gcc works but llvm-gcc doesn't? >> >> -Chris >> >> >> Thanks, >> >> Juan Carlos >> >> On Tue, Oct 20, 2009 at 3:16 AM, Duncan Sands <baldrick at free.fr> wrote: >> >>> llvm-gcc doesn't support address spaces. This is a clang-only feature. >>>> >>> >>> However it could be implemented in llvm-gcc. >>> >>> Ciao, >>> >>> Duncan. >>> >> >> >> >> -- >> Juan Carlos >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >> >> >> > > > -- > Juan Carlos > > >-- Juan Carlos -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091021/63361656/attachment.html>