Article View: gnu.gcc.help
Article #50429(int) problem.
From: Kurt Jurgen Schaefer
Date: Wed, 29 Sep 1993 17:55
Date: Wed, 29 Sep 1993 17:55
18 lines
1389 bytes
1389 bytes
I'm compiling code on on a sun3, and I run it on a 68040 board. It
seems to work for the most part, but casting floats to ints seems to be
crashing the '040. Here's the offending code:
ticks = (int)(rrPtick);
Turns into:
50020488 F2395403000EB420 FGEN {5403},rrPtick
50020490 F22E6000FFFC FGEN {6000},(-0x4,A6)
Is there some sort of switch I can use to get this to work? (Or some kind of
patch I can apply?) I talked to one group which had the same problem, and
they wrote an assembly routine called fti to use insted of (int). That
seems a little heavy handed. Help! :-)
-Kurt (Please send responces to my account because I don't
read this board on a regular basis... Thanks!)
Technical Details
Message-ID:
<wgeQkLS00WB9ABYUkt@andrew.cmu.edu>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!pipex!uunet!magnesium.club.cc.cmu.edu!honeydew.srv.cs.cmu.edu!bb3.andrew.cmu.edu!andrew.cmu.edu!ks37+Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,808501f76b72dda7,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-09-29 11:27:51 PST Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!pipex!uunet!magnesium.club.cc.cmu.edu!honeydew.srv.cs.cmu.edu!bb3.andrew.cmu.edu!andrew.cmu.edu!ks37+ From: Kurt Jurgen Schaefer <ks37+@andrew.cmu.edu> Newsgroups: gnu.gcc.help Subject: (int) problem. Date: Wed, 29 Sep 1993 13:55:35 -0400 Organization: Robotics Institute, Carnegie Mellon, Pittsburgh, PA Lines: 20 Message-ID: <wgeQkLS00WB9ABYUkt@andrew.cmu.edu> NNTP-Posting-Host: po5.andrew.cmu.edu