[geoffk@cygnus.com: GCC testing failed with your patch.]
Kaveh R. Ghazi
ghazi@caip.rutgers.edu
Tue Mar 28 09:57:00 GMT 2000
Geoff,
I've had success with this patch. I haven't done a full
bootstrap yet. I plan to do that tonight, though my AIX box is really
slow. Please let me know if it works for you.
--Kaveh
2000-03-28 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.
diff -rup orig/egcs-CVS20000327/gcc/c-common.c egcs-CVS20000327/gcc/c-common.c
--- orig/egcs-CVS20000327/gcc/c-common.c Fri Mar 24 15:15:28 2000
+++ egcs-CVS20000327/gcc/c-common.c Mon Mar 27 14:47:18 2000
@@ -3645,13 +3645,13 @@ c_common_nodes_and_builtins (cplus_mode,
/* Suppress error if redefined as a non-function. */
DECL_BUILT_IN_NONANSI (temp) = 1;
- /* In C mode, don't conflict with system prototype variations. */
- temp = builtin_function ("bzero",
- cplus_mode ? bzero_ftype : void_ftype_any,
+ /* The system prototypes for these functions have many
+ variations, so don't specify parameters to avoid conflicts.
+ The expand_* functions check the argument types anyway. */
+ temp = builtin_function ("bzero", void_ftype_any,
BUILT_IN_BZERO, BUILT_IN_NORMAL, NULL_PTR);
DECL_BUILT_IN_NONANSI (temp) = 1;
- temp = builtin_function ("bcmp",
- cplus_mode ? bcmp_ftype : int_ftype_any,
+ temp = builtin_function ("bcmp", int_ftype_any,
BUILT_IN_BCMP, BUILT_IN_NORMAL, NULL_PTR);
DECL_BUILT_IN_NONANSI (temp) = 1;
}
More information about the Gcc-bugs
mailing list