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

Re: Patch expand_builtin_stpcpy to only expand for string constants


 > As mentioned by Jakub here:
 > http://gcc.gnu.org/ml/gcc-patches/2003-04/msg02122.html
 > 
 > expanding stpcpy can pessimize code when calculating the return value
 > if the src string is a runtime expression.  This patch limits the
 > expansion

oops sorry I jumped the gun, it should have continued:

... to expressions whose length we can evaluate at compile-time.

Tested on sparc-sun-solaris2.7, ok for mainline?

		Thanks,
		--Kaveh


 > 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 > 
 >     * builtins.c (expand_builtin_stpcpy): Only expand when the
 >     length of the source string can be evaluated at compile-time.
--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu


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