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]

Re: Patch to create builtin bcmp


 > From: Richard Earnshaw <rearnsha@arm.com>
 > 
 > ghazi@caip.rutgers.edu said:
 > > 	 This patch creates a new builtin bcmp.  It operates by simply
 > > calling builtin memcmp.  This patch depends on http://gcc.gnu.org/ml/
 > > gcc-patches/2000-03/msg00747.html
 > 
 > > Bootstrapped on i686-pc-linux-gnu and sparc-sun-solaris2.7, no
 > > regressions. Okay to install? 
 > 
 > 
 > BCMP and bzero aren't ANSI functions.  Should we be treating them
 > exactly the same as memcmp?  Especially when -pedantic (or whatever
 > the option is).
 > R.

Agreed, that's why they are only activated by !no_nonansi_builtins and
also set DECL_BUILT_IN_NONANSI.  This is similar to how builtin
"alloca" and "ffs" are handled.

So, okay to install?

		--Kaveh
--
Kaveh R. Ghazi			Engagement Manager / Project Services
ghazi@caip.rutgers.edu		Qwest Internet Solutions

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