<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - Add command-line option to choose the max nest level in asm macros"
   href="https://llvm.org/bugs/show_bug.cgi?id=28509">28509</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Add command-line option to choose the max nest level in asm macros
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>MC
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>alt.j9-ez05t3x@cool.fr.nf
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=16722" name="attach_16722" title="Broken patch">attachment 16722</a> <a href="attachment.cgi?id=16722&action=edit" title="Broken patch">[details]</a></span>
Broken patch

I hit the following limit twice: "macros cannot be nested more than 20 levels
deep" (one time with a tail-recursive macro and another with generated code).
This refers to assembly macros, in lib/MC/MCParser/AsmParser.cpp .

I would be very nice to have a command-line option to be able to increase this
limit in those (uncommon) cases.

I tried to make a patch (attached), but it is not working: the command line
option is not used (and I get the "argument unused during compilation"
warning).
I am unfamiliar with LLVM code-base so I unfortunately do not know how to fix
the issue with my patch.</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>