<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 - -foptimization-record-file= should imply -fsave-optimization-record"
   href="https://bugs.llvm.org/show_bug.cgi?id=33670">33670</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>-foptimization-record-file= should imply -fsave-optimization-record
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </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>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Driver
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>modocache@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The Clang option -foptimization-record-file= controls which file an
optimization record is output to. Optimization records are output if you use
the Clang option -fsave-optimization-record. If you specify the first option
without the second, you get a warning that the command line argument was
unused:

$ clang -fprofile-sample-use=foo.profdat -foptimization-record-file=foo.yaml
foo.c
clang-5.0: warning: argument unused during compilation:
'-foptimization-record-file=foo.yaml' [-Wunused-command-line-argument]

Should -foptimization-record-file= imply -fsave-optimization-record? It seems
like a user that specifies a custom path to an optimization record file
certainly wants Clang to output the file in the first place.</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>