Remove ctime declaration in libgcc2.c

Richard Kenner kenner@vlsi1.ultra.nyu.edu
Tue Dec 11 05:21:00 GMT 2001


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



More information about the Gcc-patches mailing list