[PATCH] A couple minor changes to support sanitizers on FreeBSD 9.2

Viktor Kutuzov vkutuzov at accesssoftek.com
Wed Mar 19 06:05:56 PDT 2014

  > What if we compile all the sources and all the tests with "_D_SIZE_T_DECLARED" and "-Dsize_t=unsigned" (or -Dsize_t=__SIZE_TYPE__)?

  It fails on:

     // bits/c++config.h
    namespace std
      typedef __SIZE_TYPE__ size_t;

  with this:

    /usr/include/c++/4.8.1/x86_64-unknown-freebsd9.2/bits/c++config.h:180:26: error: cannot combine with previous 'int' declaration specifier
      typedef __SIZE_TYPE__         size_t;
    <command line>:2:16: note: expanded from here
    #define size_t __SIZE_TYPE__
    <built-in>:63:37: note: expanded from here
    #define __SIZE_TYPE__ long unsigned int

  There are no macro guards for the 'size_t' definition.


More information about the llvm-commits mailing list