From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5bef5e9c5bedc675,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-02 03:59:03 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!news2.telebyte.nl!news.cambrium.nl!news.cambrium.nl!news.cambrium.nl!newsgate.cistron.nl!news2.euro.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: "Luke A. Guest" Newsgroups: comp.lang.ada Subject: [No_Elaboration_Code] GNAT still generating rep_to_pos, why? Date: Fri, 02 Jan 2004 11:59:02 +0000 Message-ID: NNTP-Posting-Host: abyss2.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.demon.co.uk 1073044742 2334 62.49.62.197 (2 Jan 2004 11:59:02 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Fri, 2 Jan 2004 11:59:02 +0000 (UTC) User-Agent: Pan/0.14.0 (I'm Being Nibbled to Death by Cats!) Xref: archiver1.google.com comp.lang.ada:4038 Date: 2004-01-02T11:59:02+00:00 List-Id: Hi, In my attempts to get a "hello world" style kernel running on my SGI O2, I have been developing a simple program to dump out a character to the PROM console. I have a package which has all my definitions and types needed by the functions in the ARCS PROM. I have also needed to add the No_Elaboration_Code pragma to get static initialisation code much like that of C. Now, here are the problems: 1) There are two _rep_to_pos functions generated but never used. 2) I have set up my SP_Block record instance to be located at a particular memory address, yet the compiler still generates code to initialise this structure. So, my question is this; is this a bug in the compiler or am I missing something? I'm currently using GCC-3.3.2 with the FSF GNAT package. I can remove the redundant code by using the following GCC options "-ffunction-sections -fdata-sections" and linker option "--gc-sections" but this is a workaround rather than a solution. Thanks, Luke.