This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch for projects/index.html: unused string constants
- To: <gcc-patches at gcc dot gnu dot org>
- Subject: Patch for projects/index.html: unused string constants
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Tue, 21 Nov 2000 19:27:32 +0000 (GMT)
Since GCC now eliminates unused string constants (both in unused inline
functions and in dead code), the corresponding item from the old PROJECTS
file can go - except that part of the item relates to specifying sections
for string constants, AFAIK still outstanding and of value for the Linux
kernel's __initdata, so that bit must remain. OK to commit the following
patch?
Index: index.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/projects/index.html,v
retrieving revision 1.2
diff -u -r1.2 index.html
--- index.html 2000/11/05 01:18:22 1.2
+++ index.html 2000/11/21 19:22:59
@@ -290,19 +290,13 @@
<p>Better optimization.
<ol>
-<li>Constants in unused inline functions
+<li>Putting constants in special sections.
-<p>It would be nice to delay output of string constants so that string
-constants mentioned in unused inline functions are never generated.
-Perhaps this would also take care of string constants in dead code.
-
-<p>The difficulty is in finding a clean way for the RTL which refers
-to the constant (currently, only by an assembler symbol name) to point
-to the constant and cause it to be output.
-
-<p>A related problem: if a function has been placed in a special
+<p>If a function has been placed in a special
section via attributes, we may want to put its static data and string
-constants in a special section too. But which one?
+constants in a special section too. But which one? (Being able to
+specify a section for string constants would be useful for the Linux
+kernel.)
<li>Optimize a sequence of if statements whose conditions are
exclusive.
--
Joseph S. Myers
jsm28@cam.ac.uk