This is the mail archive of the gcc@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: ctime declaration in libgcc2.c


Richard Henderson <rth@redhat.com> writes:

|> On Sun, Dec 02, 2001 at 07:11:14AM -0500, Richard Kenner wrote:
|> > Mot systems seem to have it in time.h, but can we safely #include that
|> > from libgcc2.c?
|> 
|> No.
|>  
|> > Any other suggestions?
|> 
|> Leave the warning.

Do you propose to remove the declaration?  That would break ia64.  ctime
is returning a pointer, and not declarating it properly will cause a crash
due to sizeof(int) < sizeof(char *), thus losing significant bits.

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]