[llvm-commits] [llvm-gcc-4.2] r52342 - /llvm-gcc-4.2/trunk/gcc/genmodes.c
Anton Korobeynikov
asl at math.spbu.ru
Mon Jun 16 11:33:21 PDT 2008
Author: asl
Date: Mon Jun 16 13:33:21 2008
New Revision: 52342
URL: http://llvm.org/viewvc/llvm-project?rev=52342&view=rev
Log:
Workaround broken MS CRT
Modified:
llvm-gcc-4.2/trunk/gcc/genmodes.c
Modified: llvm-gcc-4.2/trunk/gcc/genmodes.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/genmodes.c?rev=52342&r1=52341&r2=52342&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/genmodes.c (original)
+++ llvm-gcc-4.2/trunk/gcc/genmodes.c Mon Jun 16 13:33:21 2008
@@ -785,11 +785,12 @@
/* Output routines. */
-#define tagged_printf(FMT, ARG, TAG) do { \
- int count_; \
- printf (" " FMT ",%n", ARG, &count_); \
- printf ("%*s/* %s */\n", 27 - count_, "", TAG); \
+/* LLVM LOCAL begin mainline */
+#define tagged_printf(FMT, ARG, TAG) do { \
+ int count_ = printf (" " FMT ",", ARG); \
+ printf ("%*s/* %s */\n", 27 - count_, "", TAG); \
} while (0)
+/* LLVM LOCAL end mainline */
#define print_decl(TYPE, NAME, ASIZE) \
puts ("\nconst " TYPE " " NAME "[" ASIZE "] =\n{");
More information about the llvm-commits
mailing list