<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - dont emit -Wreturn-stack-address in single case"
   href="https://bugs.llvm.org/show_bug.cgi?id=38569">38569</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>dont emit -Wreturn-stack-address in single case
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Frontend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>ndesaulniers@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llozano@chromium.org, llvm-bugs@lists.llvm.org, srhines@google.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>From <a href="https://github.com/ClangBuiltLinux/linux/issues/24">https://github.com/ClangBuiltLinux/linux/issues/24</a>:

The Linux kernel uses the following construct often:

#define _THIS_IP_  ({ __label__ __here; __here: (unsigned long)&&__here; })

This produces -Wreturn-stack-address (in Clang 7+) for the label, but generates
the expected code.

I think we can detect returning the address of a label in a GNU-C-extension
statement expression, that has nothing between the label and the final
statement, and not emit the warning?</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>