===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.9/porting_to.html,v
retrieving revision 1.7
@@ -47,9 +47,9 @@
<p>This example now gives the following diagnostic:</p>
<pre>
-<b>t.c:6:19:</b> <b style='color:red'>error:</b> expected ‘<b>declare</b>’ before ‘<b>critical</b>’
+<b>t.c:6:19:</b> <span class="boldred">error:</span> expected ‘<b>declare</b>’ before ‘<b>critical</b>’
#pragma omp end critical
- <b style='color:lime'>^</b>
+ <span class="boldred">^</span>
</pre>
<p>There is no <code>#pragma omp end critical</code> directive for C/C++
@@ -105,9 +105,9 @@
<p>This example now gives the following diagnostic:</p>
<pre>
-<b>w.c:5:9:</b> <b style='color:magenta'>warning:</b> right-hand operand of comma expression has no effect [-Wunused-value]
+<b>w.c:5:9:</b> <span class="boldmagenta">warning:</span> right-hand operand of comma expression has no effect [-Wunused-value]
bar (), i;
- <b style='color:lime'>^</b>
+ <span class="boldlime">^</span>
</pre>
<p>To suppress this warning cast the right-hand operand to <code>void</code>:</p>
@@ -135,12 +135,12 @@
<p>This example now gives the following diagnostic:</p>
<pre>
-<b>e.cc:8:9:</b> <b style='color:red'>error:</b> redeclaration of ‘<b>int e</b>’ [-fpermissive]
+<b>e.cc:8:9:</b> <span class="boldred">error:</span> redeclaration of ‘<b>int e</b>’ [-fpermissive]
int e = 0;
- <b style='color:lime'>^</b>
-<b>e.cc:7:21:</b> <b style='color:cyan'>note:</b> ‘<b>const E& e</b>’ previously declared here
+ <span class="boldlime">^</span>
+<b>e.cc:7:21:</b> <span class="boldcyan">note:</span> ‘<b>const E& e</b>’ previously declared here
} catch (const E& e) {
- <b style='color:lime'>^</b>
+ <span class="boldlime">^</span>
</pre>
<p>
@@ -169,7 +169,7 @@
<p>This example now gives the following diagnostic:</p>
<pre>
-<b>r.cc:8:21:</b> <b style='color:red'>error:</b> redeclaration of ‘<b>void A<T>::f(int)</b>’ may not have default arguments [-fpermissive]
+<b>r.cc:8:21:</b> <span class="boldred">error:</span> redeclaration of ‘<b>void A<T>::f(int)</b>’ may not have default arguments [-fpermissive]
</pre>
<p>
@@ -189,9 +189,9 @@
a diagnostic like:</p>
<pre>
<b>/usr/include/c++/4.9.0/bits/shared_ptr_base.h:</b> In member function ‘<b>virtual void* std::_Sp_counted_deleter<_Ptr, _Deleter, _Alloc, _Lp>::_M_get_deleter(const std::type_info&)</b>’:
-<b>/usr/include/c++/4.9.0/bits/shared_ptr_base.h:479:39:</b> <b style='color:red'>error:</b> must #include <typeinfo> before using typeid
+<b>/usr/include/c++/4.9.0/bits/shared_ptr_base.h:479:39:</b> <span class="boldred">error:</span> must #include <typeinfo> before using typeid
return __ti == typeid(_Deleter) ? &_M_impl._M_del() : nullptr;
- <b style='color:lime'>^</b>
+ <span class="boldlime">^</span>
</pre>
<p>All <code><bits/xxx.h></code> headers are internal library headers
@@ -205,14 +205,14 @@
only.
For instance with GMP versions up to 5.1.3, you may see: </p>
<pre>
-<b>/usr/include/c++/4.9.0/cstddef:51:11:</b> <b style='color:red'>error:</b> ‘<b>::max_align_t</b>’ has not been declared
+<b>/usr/include/c++/4.9.0/cstddef:51:11:</b> <span class="boldred">error:</span> ‘<b>::max_align_t</b>’ has not been declared
using ::max_align_t;
- <b style='color:lime'>^</b>
+ <span class="boldlime">^</span>
</pre>
<p>Another possible error is:</p>
<pre>
-<b>someheader.h:99:13:</b> <b style='color:red'>error:</b> ‘<b>ptrdiff_t</b>’ does not name a type
+<b>someheader.h:99:13:</b> <span class="boldred">error:</span> ‘<b>ptrdiff_t</b>’ does not name a type
</pre>
<p>A workaround until libraries get updated is to include
<code><cstddef></code> or <code><stddef.h></code> before any