This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RFC: Simplifying translate_name in prefix.c
- From: neroden at twcny dot rr dot com (Nathanael Nerode)
- To: gcc at gcc dot gnu dot org
- Date: Sat, 28 Feb 2004 18:25:05 -0500
- Subject: RFC: Simplifying translate_name in prefix.c
I was thinking about this, which causes various sorts of trouble
like bug 9968.
There's a strange and overly complicated scheme in translate_name
for substituting keys.
It seems designed to allow repeated substitution
(so that @G++/ gets replaced with @GCC/ gets replaced with $FOO/ gets replaced
with $BAR/ ...). Frankly, that seems quite unnecessary and even undesirable.
If that's eliminated, a single layer of substitution can be better
implemented by having the 'key' as a separate argument to translate_name.
(Or possibly the entire 'key' business could be eliminated outright, as
I don't see what it's used for anyway.)
Does anyone understand this code or its function?
--
Nathanael Nerode <neroden at gcc.gnu.org>
US citizens: if you're considering voting for Bush, look at these first:
http://www.misleader.org/ http://www.cbc.ca/news/background/arar/
http://www.house.gov/reform/min/politicsandscience/