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.236.140.195 with SMTP id e43mr22629633yhj.48.1431384358743; Mon, 11 May 2015 15:45:58 -0700 (PDT) X-Received: by 10.182.39.136 with SMTP id p8mr75025obk.8.1431384358675; Mon, 11 May 2015 15:45:58 -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!feeder.erje.net!1.eu.feeder.erje.net!newspeer1.nac.net!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!z60no6738713qgd.0!news-out.google.com!kd3ni14391igb.0!nntp.google.com!m20no2158069iga.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 11 May 2015 15:45:58 -0700 (PDT) In-Reply-To: <9ee472db-e51d-4e04-a5df-7bee793794a1@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=68.4.216.19; posting-account=JMw1jQoAAAA12VqnlnZDg7fuMc49R2Kv NNTP-Posting-Host: 68.4.216.19 References: <9ee472db-e51d-4e04-a5df-7bee793794a1@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <42b0aa4e-1002-4ada-af4f-61f996350965@googlegroups.com> Subject: Re: Interesting Array Initialization Code Gen [FSF GNAT 4.9.2] From: visaoni@gmail.com Injection-Date: Mon, 11 May 2015 22:45:58 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:25818 Date: 2015-05-11T15:45:58-07:00 List-Id: Just a bit of an update (which probably isn't much of a surprise). Assignment produces the same kind of code in the same situations. Assignmen= ts by function create a new array on the stack, sets the values there, and = then copies it into the result array. Using a literal value instead just se= ts the values directly in the result array.