Article View: comp.sys.amiga.tech
Article #6213To SAS: SAS C 5.10 bugs
From: Jean-Michel Forgeas
Date: Tue, 30 Oct 1990 20:40
Date: Tue, 30 Oct 1990 20:40
98 lines
3629 bytes
3629 bytes
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 ?
Technical Details
Message-ID:
<1821a622.ARN02148@swinjm.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!apple!usc!julius.cs.uiuc.edu!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!bagate!cbmvax!cbmehq!cbmfra!swinjm!forgeasShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!apple!usc!julius.cs.uiuc.edu!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!bagate!cbmvax!cbmehq!cbmfra!swinjm!forgeas From: forgeas@swinjm.UUCP (Jean-Michel Forgeas) Newsgroups: comp.sys.amiga.tech Subject: To SAS: SAS C 5.10 bugs Message-ID: <1821a622.ARN02148@swinjm.UUCP> Date: 30 Oct 90 20:40:02 GMT Reply-To: forgeas@swinjm.UUCP (Jean-Michel Forgeas) Followup-To: comp.sys.amiga.tech Organization: The Software Winery Lines: 99