Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!emory!hubcap!cgehman From: cgehman@hubcap.clemson.edu (Corey Gehman) Newsgroups: comp.sys.amiga.programmer Subject: Re: Is it me or Manx C 5.0c (the -MR option) Message-ID: <13377@hubcap.clemson.edu> Date: 4 Mar 91 07:43:42 GMT References: <46418@nigel.ee.udel.edu> Organization: Clemson University, Clemson, SC Lines: 58 Ata@system-m.phx.bull.com (John G. Ata) writes: >When I use the -so >option, the problem goes away. It must be either the -so option, or one >of the optimize options which makes the problem go away. Not all >optimize options will work, but only a specific one which -so includes. > John Well, my problem didn't get fixed with the -so option. Here's the smallest I could convert the problem down to: #define FABS(x) ((x) < 0.0 ? (0.0 - (x)) : (x)) double test() { double i,j; return (FABS ( i - j ) + FABS ( i - j ) + FABS ( i - j )); } Here's my error messages with serveral different options: 1> cc test Aztec C 5.0b Jun 18 1990 (C) 1990 by Manx Software Systems, Inc. return (FABS ( i - j ) + FABS ( i - j ) + FABS ( i - j )); test.c:8: ERROR 167: expression too complex - use -MR option: 1> cc -mr test Aztec C 5.0b Jun 18 1990 (C) 1990 by Manx Software Systems, Inc. return (FABS ( i - j ) + FABS ( i - j ) + FABS ( i - j )); test.c:8: ERROR 167: expression too complex - use -MR option: 1> cc -so test Aztec C 5.0b Jun 18 1990 (C) 1990 by Manx Software Systems, Inc. } test.c:8: ERROR 167: expression too complex - use -MR option: 1> cc -mr -so test Aztec C 5.0b Jun 18 1990 (C) 1990 by Manx Software Systems, Inc. } test.c:8: ERROR 167: expression too complex - use -MR option: I've "fixed" the problem by using a subroutine instead of a macro but since I often port software from unix to the amiga I don't want to do that everytime. I don't know if 5.0d version with the -so option works or not. I've ordered a new version but it hasn't got here yet (I don't want to pay large phone bills OK?). -- ------------------------------------------------------------------------------- | Corey Gehman | "you will get to watch the Amiga | | cg377170@lion.eng.clemson.edu | FIREWORKS_DISPLAY mode." | | cgehman@hubcap.clemson.edu | - Intuition Reference Manual |