Patch to create builtin bzero
Kaveh R. Ghazi
ghazi@caip.rutgers.edu
Fri Apr 7 17:02:00 GMT 2000
> From: Jason Merrill <jason@cygnus.com>
>
> This patch:
>
> 2000-03-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
>
> * c-common.c (c_common_nodes_and_builtins): Don't special case
> cplus_mode when declaring builtin bzero/bcmp, always avoid
> prototype arguments.
>
> breaks C++; when we include /usr/include/string.h, the compiler
> complains about mismatching declarations.
Jason, would you please tell me what platform and show me your code
and the error message? The whole point of the patch was to avoid
mentioning the args so conflicts wouldn't occur. I'm curious what's
going on, only __builtin_{bzero,bcmp} get args, not regular bzero or
bcmp. Are you using the __builtin_* calls or the regular ones?
> I also didn't see a message about this change.
> Jason
Err, I think I cc:ed you directly in addition to posting it, though the
public posting seems to have gone to the bugs list, not the patches
list, since I wrote it in response to a bug report from Geoff. See:
http://gcc.gnu.org/ml/gcc-bugs/2000-03/msg01134.html
Gavin approved the patch for installation in private email:
http://gcc.gnu.org/ml/gcc-bugs/2000-03/msg01201.html
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions
More information about the Gcc-patches
mailing list