This file is indexed.

/usr/share/doc/gcc-python-plugin-doc/html/0.10.html is in gcc-python-plugin-doc 0.15-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>0.10 &#8212; gcc-python-plugin 0.15 documentation</title>
    
    <link rel="stylesheet" href="_static/classic.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    './',
        VERSION:     '0.15',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true,
        SOURCELINK_SUFFIX: '.txt'
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="index" title="Index" href="genindex.html" />
    <link rel="search" title="Search" href="search.html" />
    <link rel="next" title="0.9" href="0.9.html" />
    <link rel="prev" title="0.11" href="0.11.html" /> 
  </head>
  <body role="document">
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="0.9.html" title="0.9"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="0.11.html" title="0.11"
             accesskey="P">previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="index.html">gcc-python-plugin 0.15 documentation</a> &#187;</li>
          <li class="nav-item nav-item-1"><a href="release-notes.html" accesskey="U">Release Notes</a> &#187;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <div class="section" id="id1">
<h1>0.10<a class="headerlink" href="#id1" title="Permalink to this headline"></a></h1>
<p>Thanks to Buck Golemon, Daniele Varrazzo, David Narvaez, Eevee, Jason Mueller,
Kevin Pyle, Matt Rice and Tom Tromey for their contributions to this release.</p>
<div class="section" id="changes-to-the-gcc-python-plugin">
<h2>Changes to the GCC Python Plugin<a class="headerlink" href="#changes-to-the-gcc-python-plugin" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>The plugin can now be used with Python 3.3 (fixing Unicode issues and
dict-ordering assumptions).</li>
<li>The plugin now exposes inline assembler to Python scripts via
<a class="reference internal" href="gimple.html#gcc.GimpleAsm" title="gcc.GimpleAsm"><code class="xref py py-class docutils literal"><span class="pre">gcc.GimpleAsm</span></code></a>.</li>
<li>There is a new <cite>gccutils.sorted_callgraph()</cite> function to get the callgraph in
topologically-sorted order.</li>
<li>The test suite has been reworked to fix issues with checkouts on OS X
case-insensitive filesystems.</li>
<li>C++ support: support for locating the global namespace (aka &#8221;::&#8221;), for locating
declarations and child namespaces within a namespace, and aliases.</li>
<li><a class="reference internal" href="tree.html#gcc.Declaration" title="gcc.Declaration"><code class="xref py py-class docutils literal"><span class="pre">gcc.Declaration</span></code></a> now has an is_builtin attribute</li>
<li>Numerous improvements to the plugin&#8217;s Makefile</li>
</ul>
</div>
<div class="section" id="improvements-to-gcc-with-cpychecker">
<h2>Improvements to <a class="reference internal" href="cpychecker.html"><span class="doc">gcc-with-cpychecker</span></a><a class="headerlink" href="#improvements-to-gcc-with-cpychecker" title="Permalink to this headline"></a></h2>
<ul>
<li><p class="first">By default, the refcount checker is now only run on code that includes
&lt;Python.h&gt; (implemented by checking if the &#8220;PyObject&#8221; typedef exists).</p>
<p>This greatly speeds up compilation of large projects for which the Python
extension modules are only a small subset of the source tree.</p>
</li>
<li><p class="first">Added some custom attributes for marking functions that set an exception,
either always, or when returning a negative value:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">__attribute__</span><span class="p">((</span><span class="n">cpychecker_negative_result_sets_exception</span><span class="p">))</span>
<span class="n">__attribute__</span><span class="p">((</span><span class="n">cpychecker_sets_exception</span><span class="p">))</span>
</pre></div>
</div>
</li>
<li><p class="first">Improve descriptions of ranges: rather than emitting descriptions with the rather
vague &#8220;value&#8221;, such as:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">when</span> <span class="n">considering</span> <span class="nb">range</span><span class="p">:</span> <span class="mi">1</span> <span class="o">&lt;=</span> <span class="n">value</span> <span class="o">&lt;=</span> <span class="mh">0x7fffffff</span>
</pre></div>
</div>
<p>instead try to embed a descriptive name for the value, such as:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">when</span> <span class="n">considering</span> <span class="nb">range</span><span class="p">:</span> <span class="mi">1</span> <span class="o">&lt;=</span> <span class="n">n</span> <span class="o">&lt;=</span> <span class="mh">0x7fffffff</span>
</pre></div>
</div>
</li>
</ul>
<div class="section" id="mass-recompile-of-fedora-17-s-python-extension-code">
<h3>Mass recompile of Fedora 17&#8217;s Python extension code<a class="headerlink" href="#mass-recompile-of-fedora-17-s-python-extension-code" title="Permalink to this headline"></a></h3>
<p>I ran the reference-count checker on all of the C/C++ Python extension modules
in Fedora 17 and <a class="reference external" href="http://fedoraproject.org/wiki/Features/StaticAnalysisOfPythonRefcounts">reported hundreds of genuine problems</a>,
many of which have been fixed.</p>
<p>In the process of doing this I found and fixed many problems in the checker
itself.  For example:</p>
<blockquote>
<div><ul>
<li><p class="first">the checker now understand&#8217;s GCC&#8217;s  <cite>__builtin_expect</cite>, fixing various
false reports about dereferencing NULL pointers when running the checker
on Cython-generated code in python-lxml-2.3</p>
</li>
<li><p class="first">added descriptions of part of SWIG and Cython&#8217;s internal APIs to suppress
some false positives seen with SWIG and Cython-generated code.</p>
</li>
<li><p class="first">tweak the refcount rules to fix some false positives where the checker
erroneously considered the case of a deallocation by:</p>
<div class="highlight-c"><div class="highlight"><pre><span></span><span class="n">Py_DECREF</span><span class="p">(</span><span class="n">obj</span><span class="p">);</span>
</pre></div>
</div>
<p>where &#8220;obj&#8221; provably had other references not owned by the function being
analyzed, and thus for the case where obj-&gt;ob_refcnt &gt; 1 the deallocation
could not happen.</p>
</li>
</ul>
</div></blockquote>
<p>The plugin also now has a triaging script which can examine all of the errors
within a build and provide a report, showing all of them in prioritized
categories.</p>
<p>The source tree now contains helper scripts for conducting such a mass recompile.</p>
</div>
<div class="section" id="pyscopg-support">
<h3>Pyscopg support<a class="headerlink" href="#pyscopg-support" title="Permalink to this headline"></a></h3>
<p>Daniele Varrazzo used the checker extensively on
<a class="reference external" href="http://initd.org/psycopg/">psycopg</a>, the popular Python interface
to <a class="reference external" href="http://www.postgresql.org/">PostgreSQL</a>, and was able to find and fix
numerous subtle errors:</p>
<blockquote>
<div><ul class="simple">
<li><a class="reference external" href="https://fedorahosted.org/pipermail/gcc-python-plugin/2012-March/000229.html">https://fedorahosted.org/pipermail/gcc-python-plugin/2012-March/000229.html</a></li>
<li><a class="reference external" href="http://initd.org/psycopg/articles/2012/03/29/psycopg-245-released/">http://initd.org/psycopg/articles/2012/03/29/psycopg-245-released/</a></li>
</ul>
</div></blockquote>
</div>
<div class="section" id="experimental-new-error-visualization">
<h3>Experimental new error visualization<a class="headerlink" href="#experimental-new-error-visualization" title="Permalink to this headline"></a></h3>
<p>The checker can now dump its internal representation in JSON form, via a new
<cite>&#8211;dump-json</cite> option, and an experimental new renderer can generate HTML from
this.  An example can be seen here:</p>
<p><a class="reference external" href="http://fedorapeople.org/~dmalcolm/gcc-python-plugin/2012-03-19/example/example.html">http://fedorapeople.org/~dmalcolm/gcc-python-plugin/2012-03-19/example/example.html</a></p>
<p>This is still a work-in-progress</p>
</div>
<div class="section" id="c-support">
<h3>C++ support<a class="headerlink" href="#c-support" title="Permalink to this headline"></a></h3>
<p>The checker is now able to run on C++ code: support has been added for methods,
references, &#8220;this&#8221;, destructors, the <a class="reference internal" href="gimple.html#gcc.GimpleNop" title="gcc.GimpleNop"><code class="xref py py-class docutils literal"><span class="pre">gcc.GimpleNop</span></code></a> operation.</p>
</div>
<div class="section" id="coverage-of-the-cpython-api">
<h3>Coverage of the CPython API<a class="headerlink" href="#coverage-of-the-cpython-api" title="Permalink to this headline"></a></h3>
<p>The format code handling for Py_BuildValue was missing support for the
following codes:</p>
<blockquote>
<div><ul class="simple">
<li>&#8216;u&#8217; and &#8216;u#&#8217;</li>
<li>&#8216;f&#8217; and &#8216;d&#8217;</li>
<li>&#8216;D&#8217;</li>
<li>&#8216;c&#8217;</li>
</ul>
</div></blockquote>
<p>In addition, the handling for &#8216;s#&#8217; and &#8216;z#&#8217; had a bug in which it erroneously
expected an int* or Py_ssize_t*, rather than just a int or Py_ssize_t.</p>
<p>This release fixes these issues, and gives full coverage of all valid
format codes for Py_BuildValue in Python 2.</p>
<p>This release adds heuristics for the behavior of the following CPython API
entrypoints:</p>
<blockquote>
<div><ul class="simple">
<li>PyCode_New</li>
<li>PyCObject_FromVoidPtrAndDesc</li>
<li>PyDict_Size</li>
<li>PyErr_Clear</li>
<li>PyEval_CallMethod</li>
<li>Py_FatalError</li>
<li>PyFile_SoftSpace, PyFile_WriteObject, and PyFile_WriteString</li>
<li>PyFloat_AsDouble and PyFloat_FromDouble</li>
<li>PyFrame_New</li>
<li>Py_GetVersion</li>
<li>PyImport_AddModule</li>
<li>PyIter_Next</li>
<li>PyNumber_Int, PyNumber_Remainder</li>
<li>PyObject_CallObject, PyObject_GetAttr, PyObject_GetAttrString, PyObject_GetItem, PyObject_SetAttr, and PyObject_SetAttrString</li>
<li>PyOS_snprintf</li>
<li>PyString_InternFromString</li>
<li>PySequence_Concat, PySequence_GetSlice, PySequence_SetItem, PySequence_Size</li>
<li>PySys_GetObject</li>
<li>PyTraceBack_Here</li>
<li>PyTuple_GetItem</li>
<li>PyUnicodeUCS4_DecodeUTF8</li>
<li>PyWeakref_GetObject</li>
</ul>
</div></blockquote>
<p>along with various other bugfixes.</p>
</div>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
  <h3><a href="index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">0.10</a><ul>
<li><a class="reference internal" href="#changes-to-the-gcc-python-plugin">Changes to the GCC Python Plugin</a></li>
<li><a class="reference internal" href="#improvements-to-gcc-with-cpychecker">Improvements to <code class="docutils literal"><span class="pre">gcc-with-cpychecker</span></code></a><ul>
<li><a class="reference internal" href="#mass-recompile-of-fedora-17-s-python-extension-code">Mass recompile of Fedora 17&#8217;s Python extension code</a></li>
<li><a class="reference internal" href="#pyscopg-support">Pyscopg support</a></li>
<li><a class="reference internal" href="#experimental-new-error-visualization">Experimental new error visualization</a></li>
<li><a class="reference internal" href="#c-support">C++ support</a></li>
<li><a class="reference internal" href="#coverage-of-the-cpython-api">Coverage of the CPython API</a></li>
</ul>
</li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="0.11.html"
                        title="previous chapter">0.11</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="0.9.html"
                        title="next chapter">0.9</a></p>
  <div role="note" aria-label="source link">
    <h3>This Page</h3>
    <ul class="this-page-menu">
      <li><a href="_sources/0.10.rst.txt"
            rel="nofollow">Show Source</a></li>
    </ul>
   </div>
<div id="searchbox" style="display: none" role="search">
  <h3>Quick search</h3>
    <form class="search" action="search.html" method="get">
      <div><input type="text" name="q" /></div>
      <div><input type="submit" value="Go" /></div>
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="0.9.html" title="0.9"
             >next</a> |</li>
        <li class="right" >
          <a href="0.11.html" title="0.11"
             >previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="index.html">gcc-python-plugin 0.15 documentation</a> &#187;</li>
          <li class="nav-item nav-item-1"><a href="release-notes.html" >Release Notes</a> &#187;</li> 
      </ul>
    </div>
    <div class="footer" role="contentinfo">
        &#169; Copyright 2011-2017, David Malcolm.
      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.5.6.
    </div>
  </body>
</html>