This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[www-patch] bugs/minimize.html
- From: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 08 May 2003 17:07:20 +0200 (CEST)
- Subject: [www-patch] bugs/minimize.html
- Reply-to: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
The following patch fixes a broken sentence and adds a remark on
how to tackle class hierarchies when stripping down a testcase.
Ok to commit?
Index: bugs/minimize.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/bugs/minimize.html,v
retrieving revision 1.3
diff -u -p -r1.3 minimize.html
--- bugs/minimize.html 8 May 2003 08:15:36 -0000 1.3
+++ bugs/minimize.html 8 May 2003 15:02:47 -0000
@@ -102,11 +102,14 @@ Try the following, backing up from the u
<li>Move includes of system headers before other headers.</li>
- <li>Remove <code>#include</code> directives, or replace them with
- only the code the included file to compile the main file.</li>
+ <li>Remove <code>#include</code> directives, or replace them with only the
+ code that is needed from the included file to compile the main file.</li>
<li>Replace C++ templates with regular functions and classes, or
get rid of as many template arguments as possible.</li>
+
+ <li>Simplify class hierarchies: Remove base classes, or use base classes
+ instead of derived ones.</li>
<li>Iterate through the following:
<ul>
===================================================================
Regards,
Volker