<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 --- - Tries to compile __isoc99_vscanf etc function intercepts even when those are disabled"
href="http://llvm.org/bugs/show_bug.cgi?id=16916">16916</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Tries to compile __isoc99_vscanf etc function intercepts even when those are disabled
</td>
</tr>
<tr>
<th>Product</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>s_llvm@nedprod.com
</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 suggest this fix:
---
a/projects/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
+++
b/projects/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
@@ -409,7 +409,6 @@ SCANF_INTERCEPTOR_IMPL(__isoc99_fscanf, __isoc99_vfscanf,
stream, format)
INTERCEPTOR(int, __isoc99_sscanf, const char *str, const char *format, ...)
SCANF_INTERCEPTOR_IMPL(__isoc99_sscanf, __isoc99_vsscanf, str, format)
-#endif
#define INIT_SCANF
\
INTERCEPT_FUNCTION(scanf);
\
@@ -424,6 +423,15 @@ SCANF_INTERCEPTOR_IMPL(__isoc99_sscanf, __isoc99_vsscanf,
str, format)
INTERCEPT_FUNCTION(__isoc99_vscanf);
\
INTERCEPT_FUNCTION(__isoc99_vsscanf);
\
INTERCEPT_FUNCTION(__isoc99_vfscanf);
+#else
+#define INIT_SCANF
\
+ INTERCEPT_FUNCTION(scanf);
\
+ INTERCEPT_FUNCTION(sscanf);
\
+ INTERCEPT_FUNCTION(fscanf);
\
+ INTERCEPT_FUNCTION(vscanf);
\
+ INTERCEPT_FUNCTION(vsscanf);
\
+ INTERCEPT_FUNCTION(vfscanf);
+#endif
#else
#define INIT_SCANF
Niall</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>