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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5bef5e9c5bedc675 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-02 09:53:49 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!proxad.net!freenix!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: [No_Elaboration_Code] GNAT still generating rep_to_pos, why? Date: 02 Jan 2004 12:51:56 -0500 Organization: Cuivre, Argent, Or Message-ID: References: NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: melchior.cuivre.fr.eu.org 1073065943 61156 80.67.180.195 (2 Jan 2004 17:52:23 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Fri, 2 Jan 2004 17:52:23 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: In-Reply-To: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Gateway to the comp.lang.ada Usenet newsgroup List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:4042 Date: 2004-01-02T12:51:56-05:00 "Luke A. Guest" writes: > So, my question is this; is this a bug in the compiler or am I missing > something? Try "pragma No_Run_Time" in your gnat.ads file. It says "don't generate _anything_ not directly required by my code", in effect. > I'm currently using GCC-3.3.2 with the FSF GNAT package. "pragma No_Run_Time" may not be supported by this version. Look in the gnat rm for similar pragmas; I think there is one to suppress the enum stuff. Note that No_Run_Time is not documented. > 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. Well, GNAT is not normally used to build kernels, and kernels are _not_ like typical user programs. So I would not be surprised to need some extra compiler/linker options. I'd call that a "solution", if there is not a GNAT pragma that does what you need. -- -- Stephe