pcc added a comment.

> It appears that Clang already supports an -mthread_model=single option, so do 
> you recommend that I remove the -mllvm -safe-stack-usp-storage=single-thread 
> option and rely on -mthread_model instead?


Makes sense to me. We're free to break `-mllvm` flags, they are for 
development/debugging purposes only.

Of course, the global variable USP requires runtime support (which I assume 
Contiki provides), so we can probably gate this on OS + thread model.

> I don't see any existing option that seems suitable for indicating that a 
> file may be used during dynamic linker or C library initialization, so 
> perhaps we should add an -mruntime-init flag?


Yes, I'm not sure about the name but we should do something like this.


http://reviews.llvm.org/D19483



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to