<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 --- - ARMv7: Assertion in llvm::DIEEntry::EmitValue when compiled with -g"
   href="http://llvm.org/bugs/show_bug.cgi?id=19934">19934</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ARMv7: Assertion in llvm::DIEEntry::EmitValue when compiled with -g
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

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

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

        <tr>
          <th>OS</th>
          <td>other
          </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>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>sgundapa@codeaurora.org
          </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=12598" name="attach_12598" title="A bugpoint reduced test case.">attachment 12598</a> <a href="attachment.cgi?id=12598&action=edit" title="A bugpoint reduced test case.">[details]</a></span>
A bugpoint reduced test case.

I am seeing an assertion in  llvm::DIEEntry::EmitValue from the past few days.
The assertion is seen with "-O2 -g". Clearly the issue is related to debugging
info. I have attached a bug point reduced test case.

My command line goes like 
clang -target arm-none-linux-gnueabi -mfloat-abi=softfp -mfpu=neon
-mcpu=cortex-a9 -O2 -g -c /tmp/test.c

I used git bisect to triage the issue and figured out the following commit
caused it. 
0d9056d7660a6fecfdd704395e7f629e4f65c11c is the first bad commit
commit 0d9056d7660a6fecfdd704395e7f629e4f65c11c
Author: David Blaikie <<a href="mailto:dblaikie@gmail.com">dblaikie@gmail.com</a>>
Date:   Sun Jun 1 03:38:13 2014 +0000

    DebugInfo: Assert that DbgVariables have associated DIEs</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>