This is the mail archive of the
mailing list for the GCC project.
Re: Remove ctime declaration in libgcc2.c
- From: Andreas Schwab <schwab at suse dot de>
- To: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 11 Dec 2001 15:11:46 +0100
- Subject: Re: Remove ctime declaration in libgcc2.c
- References: <10112111314.AA24484@vlsi1.ultra.nyu.edu>
firstname.lastname@example.org (Richard Kenner) writes:
|> 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.
This will break ia64. You cannot have a function returning a pointer
without a declaration. We either must include <time.h> or declare ctime
manually. No other way will work, you'll get an instant crash.
Andreas Schwab "And now for something
Andreas.Schwab@suse.de completely different."
SuSE Labs, SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5