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]

Re: Remove ctime declaration in libgcc2.c


kenner@vlsi1.ultra.nyu.edu (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.

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


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