<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Thanks, fixed in 188408<br>
    <br>
    <div class="moz-cite-prefix">On 8/14/13 1:03 PM, Richard Smith
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAOfiQqn2kdD6cfbgM4Rkxt7pxNWMyoe996fvX03ps7E=ZLOmTQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">On Wed, Aug 14, 2013 at 12:45 PM, Shuxin Yang <span
          dir="ltr"><<a moz-do-not-send="true"
            href="mailto:shuxin.llvm@gmail.com" target="_blank">shuxin.llvm@gmail.com</a>></span>
        wrote:<br>
        <div class="gmail_extra">
          <div class="gmail_quote">
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">Author:
              shuxin_yang<br>
              Date: Wed Aug 14 14:45:49 2013<br>
              New Revision: 188406<br>
              <br>
              URL: <a moz-do-not-send="true"
                href="http://llvm.org/viewvc/llvm-project?rev=188406&view=rev"
                target="_blank">http://llvm.org/viewvc/llvm-project?rev=188406&view=rev</a><br>
              Log:<br>
              Do no use -emit-llvm for -flto.<br>
              <br>
              Tested on multiple OSes.<br>
              <br>
              Modified:<br>
                  cfe/trunk/test/Driver/lto.c<br>
              <br>
              Modified: cfe/trunk/test/Driver/lto.c<br>
              URL: <a moz-do-not-send="true"
href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/lto.c?rev=188406&r1=188405&r2=188406&view=diff"
                target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/lto.c?rev=188406&r1=188405&r2=188406&view=diff</a><br>
==============================================================================<br>
              --- cfe/trunk/test/Driver/lto.c (original)<br>
              +++ cfe/trunk/test/Driver/lto.c Wed Aug 14 14:45:49 2013<br>
              @@ -1,11 +1,10 @@<br>
              -// -emit-llvm, -flto, and -O4 all cause a switch to
              llvm-bc object files.<br>
              +// -flto, and -O4 all cause a switch to llvm-bc object
              files.<br>
            </blockquote>
            <div><br>
            </div>
            <div>"-flto and -O4 both cause [...]"</div>
            <div> </div>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
               // RUN: %clang -ccc-print-phases -c %s -flto 2> %t.log<br>
               // RUN: grep '2: compiler, {1}, lto-bc' %t.log<br>
               // RUN: %clang -ccc-print-phases -c %s -O4 2> %t.log<br>
               // RUN: grep '2: compiler, {1}, lto-bc' %t.log<br>
              <br>
              -// and -emit-llvm doesn't alter pipeline
              (unfortunately?).<br>
              -// RUN: %clang -ccc-print-phases %s -emit-llvm 2>
              %t.log<br>
              +// RUN: %clang -ccc-print-phases %s -flto 2> %t.log<br>
               // RUN: grep '0: input, ".*lto.c", c' %t.log<br>
               // RUN: grep '1: preprocessor, {0}, cpp-output' %t.log<br>
               // RUN: grep '2: compiler, {1}, lto-bc' %t.log<br>
              @@ -13,11 +12,11 @@<br>
              <br>
               // llvm-bc and llvm-ll outputs need to match regular
              suffixes<br>
               // (unfortunately).<br>
              -// RUN: %clang %s -emit-llvm -save-temps -### 2>
              %t.log<br>
              +// RUN: %clang %s -flto -save-temps -### 2> %t.log<br>
               // RUN: grep '"-o" ".*lto\.i" "-x" "c" ".*lto\.c"' %t.log<br>
               // RUN: grep '"-o" ".*lto\.o" .*".*lto\.i"' %t.log<br>
               // RUN: grep '".*a.out" .*".*lto\.o"' %t.log<br>
              <br>
              -// RUN: %clang %s -emit-llvm -S -### 2> %t.log<br>
              +// RUN: %clang %s -flto -S -### 2> %t.log<br>
               // RUN: grep '"-o" ".*lto\.s" "-x" "c" ".*lto\.c"' %t.log<br>
              <br>
              <br>
              <br>
              _______________________________________________<br>
              cfe-commits mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
              <a moz-do-not-send="true"
                href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits"
                target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>