This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to categorize builtins.def
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: roger at eyesopen dot com
- Cc: gcc-patches at gcc dot gnu dot org, zack at codesourcery dot com
- Date: Sat, 2 Aug 2003 11:47:47 -0400 (EDT)
- Subject: Re: Patch to categorize builtins.def
- References: <Pine.LNX.4.44.0308020816580.16527-100000@www.eyesopen.com>
> From: Roger Sayle <roger@eyesopen.com>
>
> Its only an inconvenience, and is trivially worked around [I can
> always run sort on builtins.def myself now that you've made that
> possible, thanks!]. Infact, I'm not even sure why I'm arguing,
> [...]
Exactly. :-)
With builtins listed one per line, I think your point about being able
to rerun sort yourself now weakens the argument for storing it in
sorted form. As you just stated, for visually cross-referencing a
complete sorted list you merely have to do:
grep ^DEF_ | sort +2
If you want just C99 functions then do:
grep ^DEF_C99 | sort +2
Etc.
Whereas if you want to see all string builtins there's no automated
way to get that unless we maintain the functions in categories.
Agreed?
--Kaveh
--
Kaveh R. Ghazi ghazi@caip.rutgers.edu