This is the mail archive of the gcc-bugs@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: new builtins


 > From: Ulrich Drepper <drepper@redhat.com>
 > 
 > If I read this
 > 
 >   builtin_function ("__builtin_bzero", bzero_ftype,
 > 		    BUILT_IN_BZERO, BUILT_IN_NORMAL, "bzero");
 >   builtin_function ("__builtin_bcmp", bcmp_ftype,
 > 		    BUILT_IN_BCMP, BUILT_IN_NORMAL, "bcmp");
 > 
 > code in c-common.c correct `bzero´ and `bcmp´ are now recognized when
 > optimizing and appropriately expanded.
 > 
 > But this is wrong!  This is OK for the other functions but those names
 > and the semantic are fixed by the ISO C standard while the above two
 > functions are only standardized in the Unix standard.
 > 
 > Unless gcc is now intended to be a Unix compiler only these
 > definitions should be changed and only the __builtin_* name should be
 > recognized.
 > ---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
 > Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA


The bcmp/bzero builtins are not recognized when -ansi is specified.

http://gcc.gnu.org/ml/gcc-patches/2000-03/msg00751.html

--
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]