This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Remove ctime declaration in libgcc2.c
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 11 Dec 01 08:14:48 EST
- Subject: Remove ctime declaration in libgcc2.c
As discussed on the list, having a declaration there is wrong. It conflicts
with the system declaration on, at least, VMS. Nobody came up with a way
to do this correctly, so we have to delete the declaration and live with
the warning.
Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
* libgcc2.c (_bb): Remove ctime declaration.
*** libgcc2.c 2001/12/06 11:49:10 1.130
--- libgcc2.c 2001/12/11 05:36:42
*************** BLOCK_PROFILER_CODE
*** 1299,1305 ****
#undef NULL /* Avoid errors if stdio.h and our stddef.h mismatch. */
#include <stdio.h>
- char *ctime PARAMS ((const time_t *));
#include "gbl-ctors.h"
#include "gcov-io.h"
--- 1299,1304 ----