<html>
    <head>
      <base href="http://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 --- - crash at some source files with gcc's -O > 0"
   href="http://llvm.org/bugs/show_bug.cgi?id=18367">18367</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>crash at some source files with gcc's -O > 0
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>dragonegg
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Windows XP
          </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>New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>baldrick@free.fr
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mirek.kaim@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

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

When trying to recompile gcc 4.6.4 with itself with dragonegg enabled (cygwin,
gcc patched to support dll plugins), it crashes at some files - mostly at
libgcc.

gcc configure flags: --enable-shared --enable-static --disable-bootstrap
--with-arch=pentium3 --with-tune=pentium3 --enable-languages=ada,c,c++,fortran
--disable-graphite --enable-lto --enable-threads=posix --disable-win32-registry
--enable-plugin --build=pentium3-pc-cygwin

llvm configure flags: --enable-optimized --disable-assertions --enable-shared
--enable-libffi --enable-ltdl-install --disable-docs --build=pentium3-pc-cygwin

dragonegg compiled with llvm plugins enabled (doesn't seem to make a
difference)

llvm and dragonegg 3.4rc3, CFLAGS in the compilation log.

Adding -O0 prevents crash from happening (despite level 3 optimizations enabled
for dragonegg for both ir-optimize and codegen-optimize using CFLAGS), so it is
clearly gcc messing something up. Still, the crash happens regardless of
ir-optimize/codegen-optimize levels for gcc's -O > 0, so if one wants to use
both dragonegg and gcc optimizations, that's something to consider.</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>