This is the mail archive of the gcc@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]

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/


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