ports/devel/llvm-etoile/files/patch-tools_clang_lib_Sema_SemaDeclAttr.cpp
Dirk Meyer d7ef559551 Low Level Virtual Machine (LLVM) is:
- A compilation strategy designed to enable effective program
  optimization across the entire lifetime of a program.
- A virtual instruction set.
- A compiler infrastructure.
- LLVM does not imply things that you would expect from a high-level
  virtual machine. It does not require garbage collection or run-time
  code generation.

This port is only to build the Etoile project.

WWW:	http://llvm.cs.uiuc.edu/
2011-04-07 18:45:00 +00:00

17 lines
715 B
C++

$FreeBSD: /tmp/pcvs/ports/devel/llvm-etoile/files/patch-tools_clang_lib_Sema_SemaDeclAttr.cpp,v 1.1 2011-04-07 18:45:00 dinoex Exp $
--- tools/clang/lib/Sema/SemaDeclAttr.cpp.orig
+++ tools/clang/lib/Sema/SemaDeclAttr.cpp
@@ -1011,7 +1011,10 @@
default: break;
case 5: Supported = !memcmp(Format, "scanf", 5); break;
case 6: Supported = !memcmp(Format, "printf", 6); break;
- case 7: Supported = !memcmp(Format, "strfmon", 7); break;
+ case 7:
+ Supported = (!memcmp(Format, "strfmon", 7) ||
+ !memcmp(Format, "printf0", 7));
+ break;
case 8:
Supported = (is_strftime = !memcmp(Format, "strftime", 8)) ||
(is_NSString = !memcmp(Format, "NSString", 8)) ||