jrtc27 added inline comments.

================
Comment at: clang/include/clang/Basic/Attr.td:1796
+// trigger an error.
+def RISCVOverlayCall : InheritableAttr {
+  let Spellings = [GCC<"overlaycall">];
----------------
aaron.ballman wrote:
> edward-jones wrote:
> > jrtc27 wrote:
> > > If you want this to be portable to non-GNU compilers you should consider 
> > > using a keyword instead (which can still map to an attribute internally). 
> > > That also tends to get you better errors (there are places where type 
> > > attributes can get silently ignored currently).
> > I don't think much consideration has been given to other compilers, but 
> > would it be unreasonable for the interface to this feature to not 
> > necessarily be identical between GNU and non-GNU compilers?
> > 
> > That said, I'm happy to switch to a keyword, especially if as you mention 
> > there are cases where an attribute can silently go missing without error. 
> > I'm not sure on the distinction of when to use a keyword vs attribute 
> > though, given that keywords are used pretty sparingly in comparison.
> This isn't a type attribute, so I don't think there's a risk of the attribute 
> getting lost.
This one isn't, but the data one is


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109372/new/

https://reviews.llvm.org/D109372

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

Reply via email to