This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [geoffk@cygnus.com: GCC testing failed with your patch.]
- To: mark at codesourcery dot com
- Subject: Re: [geoffk@cygnus.com: GCC testing failed with your patch.]
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Tue, 28 Mar 2000 12:54:26 -0500 (EST)
- Cc: alan at linuxcare dot com dot au, gcc-bugs at gcc dot gnu dot org, geoffk at cygnus dot com, jason at cygnus dot com, loewis at informatik dot hu-berlin dot de, nathan at codesourcery dot com
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;
}