This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to create builtin bcmp
- To: rearnsha at arm dot com
- Subject: Re: Patch to create builtin bcmp
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Wed, 22 Mar 2000 12:17:43 -0500 (EST)
- Cc: egcs-patches at egcs dot cygnus dot com
> 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