This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]