This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Difference between {expand,fold,simplify}_builtin_foo ???
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 20 Sep 2004 13:41:44 -0400 (EDT)
- Subject: Difference between {expand,fold,simplify}_builtin_foo ???
I've been out of GCC most of the summer, so I don't know if this was
discussed or not. I was wondering what's the reason for and
difference between {expand,fold,simplify}_builtin_foo().
Looking at e.g. expand_builtin_sprintf and simplify_builtin_sprintf,
they seem to do exactly the same transformations. Can we just have
expand_builtin_sprintf call simplify_builtin_sprintf and then expand
the result? This would remove lots of code duplication and potential
locations of errors.
Thanks,
--Kaveh
--
Kaveh R. Ghazi ghazi@caip.rutgers.edu