forgeas@swinjm.UUCP (Jean-Michel Forgeas) (10/31/90)
I just receive the 5.10 upgrade of the C compiler from SAS inc. and found 2 bugs: 1) just a small one, lines 48 and 49 of include:libraries/disfont.h need to have nested comments. 2) harmfull since I *CANNOT* use 5.10 to compile my application. The version 5.05 compiled it just fine. a - preliminary: the files Just do a test.c with that: START---------- extern struct Region *EditRegion; void CleanupEdit() { if (EditRegion) DisposeRegion( EditRegion ); } END------------- and compile it with these options: lc -s -b0 -ccstq -v -qRAM: -HLCI:includes.q test or lc -d -s -b0 -ccstq -v -qRAM: -HLCI:includes.q test The file includes.q is generated with these includes: START---------- #include <exec/types.h> #include <exec/exec.h> #include <intuition/intuition.h> #include <graphics/gfx.h> #include <graphics/gfxbase.h> #include <graphics/gfxmacros.h> #include <graphics/display.h> #include <libraries/dos.h> #include <libraries/dosextens.h> #include <hardware/intbits.h> #include <clib/macros.h> #include <proto/exec.h> #include <proto/dos.h> #include <proto/intuition.h> #include <proto/graphics.h> #include <proto/layers.h> END------------- with this command (I know that some options are not needed): lc -ph -s -b0 -ccst -v -O -oLCI: LCI:includes b - compile that ==> LC2 puts up a requester: GURU CAUGHT.... and there is no error message at all from LC2. TB said 00000003 from LC2 c - I tried with the old LC2 v 5.05 I have now an error message and no guru. The execution messages: > Lattice LMK 5.10 Copyright (C) 1990 SAS Institute, Inc. > lc -d -s -b0 -ccstq -v -qRAM: -HLCI:includes.q test > SAS/C Compiler V5.10 for AmigaDOS > Copyright (C) 1990 SAS Institute, Inc. All Rights Reserved. > > Compiling test.c > BLTN102 Line: 4 - Invalid attribute flags for builtin function > Unable to continue compilation due to previous BLTN error(s) > > > Total files: 1, Compiled OK: 0, Failed to compile: 1 > > *** LMK: Error return from child process *** > > *** LMK: STOP *** All right, at least it gives an error... BUT: - I do not find it in the manuals - it does not clean the .o file so if I call LMK once more it consider that test.c is good and call BLink which gives: > Lattice LMK 5.10 Copyright (C) 1990 SAS Institute, Inc. > blink WITH lmklink > Blink - Version 5.10 > Copyright (c) 1990 SAS Institute, Inc. All Rights Reserved. > > Error 449: No hunk_end seen for test.o > blink failed returncode 140 > > *** LMK: Error return from child process *** > > *** LMK: STOP *** I should want these bugs fixed real soon, because I think your compiler is very good and I need it works (email me the patch ?). I repeat that this compiled all right with 5.05. Have a nice debugging day, :-) Jean-Michel -- \___/ Jean-Michel Forgeas \-/ cbmvax!cbmehq!cbmfra!swinjm!forgeas | The Software Winery -^- And, where is the universe ?