C Compiler for Unix V.2 Motorola 68020 Port

ray@ntmtka.mn.org (ray)
9 Feb 90 19:29:02 GMT

          From comp.compilers

Related articles
C Compiler for Unix V.2 Motorola 68020 Port ray@ntmtka.mn.org (1990-02-09)
| List of all articles for this month |

From: ray@ntmtka.mn.org (ray)
Newsgroups: comp.compilers,comp.lang.c
Followup-to: comp.lang.c
Keywords: C Compiler Double Float problem
Date: 9 Feb 90 19:29:02 GMT
Organization: Northern Telecom Inc., Minnetonka, MN

I am having a problem compiling the following source:


main()
{
long x;
double y;


x = -((long) y);
}


The faulty generated assembler code is :


fneg.d((S%1-12).w,%fp),%d0


The %d0 is obviously wrong. This should be a floating poing register.




Does anybody have any ideas where to start looking in the compiler code?
Please use email.


Thanks in advance.





Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.