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

Viktor Kutuzov vkutuzov at accesssoftek.com
Wed Mar 12 05:44:10 PDT 2014

  > What error do you observe if _SIZE_T_DECLARED is not defined? How does other programs on FreeBSD work around these issue?

  Without _SIZE_T_DECLARED we get redefinition errors for size_t--unsigned int vs. unsigned long or vice verse, depending on whether size_t is first defined in a system header or in sanitizers' sources.

  > It will also unlikely be the only place where we use it - e.g. would you need the same for building sanitizer_common unit tests (run by check-sanitizer command)?

  Yes, most likely we will need to fix that it a couple more places.

  Please let me know if you have any suggestions. Thanks.


More information about the llvm-commits mailing list