<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 --- - size_t definition not found in lib/builtins/clear_cache.c"
   href="http://llvm.org/bugs/show_bug.cgi?id=20112">20112</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>size_t definition not found in lib/builtins/clear_cache.c
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>compiler-rt
          </td>
        </tr>

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

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

        <tr>
          <th>OS</th>
          <td>Linux
          </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>compiler-rt
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>newchief@king.net.pl
          </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>I've compiled llvm+clang+compiler_rt+lldb (all from git master) using gcc-4.8.3
and it completed fine. Then I tried to build the same with the compiler I've
just built. The only problem I got is the error that size_t type definition
coulnd't be found in lib/builtins/clear_cache.c. Seems like gcc-4.8 assumes
stddef.h is always included. The fix for this is:

--- a/lib/builtins/clear_cache.c
+++ b/lib/builtins/clear_cache.c
@@ -8,6 +8,7 @@
  *
===----------------------------------------------------------------------===
  */

+#include <stddef.h>
 #include "int_lib.h"

 #if __APPLE__</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>