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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.52.189.7 with SMTP id ge7mr8830703vdc.6.1432892010327; Fri, 29 May 2015 02:33:30 -0700 (PDT) X-Received: by 10.140.95.109 with SMTP id h100mr70260qge.6.1432892010265; Fri, 29 May 2015 02:33:30 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!z60no4430564qgd.1!news-out.google.com!4ni95qgh.1!nntp.google.com!z60no4431629qgd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 29 May 2015 02:33:30 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=105.237.62.132; posting-account=orbgeAkAAADzWCTlruxuX_Ts4lIq8C5J NNTP-Posting-Host: 105.237.62.132 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <5fdc645a-660c-434c-afec-e8d3955782cf@googlegroups.com> Subject: Standard'Maximum_Alignment From: jan.de.kruyf@gmail.com Injection-Date: Fri, 29 May 2015 09:33:30 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:26058 Date: 2015-05-29T02:33:30-07:00 List-Id: Hallo, Does anybody know about the history of this thing. I get an error when I compile with the standard switches for making linux kernel modules. ------------------ gnat1: error: -mpreferred-stack-boundary=3 is not between 4 and 12 ------------------ I think it clashes with ------- for Memory'Alignment use Standard'Maximum_Alignment; -------- in s-memory.adb according to this email Standard'Maximum_Alignment should be 16 which works out to a preferred-stack-boundary=4 https://gcc.gnu.org/ml/gcc-patches/2005-03/msg01456.html -- gcc: -mpreferred-stack-boundary=num Attempt to keep the stack boundary aligned to a 2 raised to num byte boundary. If `-mpreferred-stack-boundary' is not specified, the default is 4 (16 bytes or 128 bits). -- Am I right in my assumption that kernel uses the value of 3 since none of the fancy cpu extensions are used in kernel code? And gnat of course knows nothing about kernelcode. with or without the kernelcode switch it asks for memory with '__gnat_malloc' Thanks, j.