[PATCH] D104736: [LangRef] add note to warn-frame-size about ODR

Nick Desaulniers via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 22 12:10:36 PDT 2021


nickdesaulniers created this revision.
nickdesaulniers added a reviewer: dblaikie.
Herald added a subscriber: jdoerfert.
nickdesaulniers requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

As sugguested by @dblaikie in D104342 <https://reviews.llvm.org/D104342>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D104736

Files:
  llvm/docs/LangRef.rst


Index: llvm/docs/LangRef.rst
===================================================================
--- llvm/docs/LangRef.rst
+++ llvm/docs/LangRef.rst
@@ -2052,7 +2052,10 @@
     This attribute sets a threshold to emit diagnostics once the frame size is
     known should the frame size exceed the specified value.  It takes one
     required integer value, which should be a non-negative integer, and less
-    than `UINT_MAX`.
+    than `UINT_MAX`. It's considered an ODR violation by LLVM to have two
+    definitions of the same function with differing values of this function
+    attribute using ``linkonce``, ``linkonce_odr``, ``weak``, or ``weak_odr``
+    linkage.
 ``vscale_range(<min>[, <max>])``
     This attribute indicates the minimum and maximum vscale value for the given
     function. A value of 0 means unbounded. If the optional max value is omitted


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104736.353743.patch
Type: text/x-patch
Size: 869 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210622/0c92c60a/attachment.bin>


More information about the llvm-commits mailing list