This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Question about -Os handling of fold_builtin_strcpy()
- From: Dave Hudson <gcc at blueteddy dot net>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 24 Mar 2010 18:37:14 +0000
- Subject: Question about -Os handling of fold_builtin_strcpy()
Is there any obvious reason why this function doesn't enable folding if we're optimizing for size? All of the other string/memory folds appear to rely on the various move, clear or set ratios?
When optimizing small string copies it's definitely smaller to do this inline on some ISAs.
Thanks,
Dave