This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[www-patch] bugs/minimize.html


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]