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-Thread: 103376,8f7b0ead76cf5827 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!news.glorb.com!news2.euro.net!newsfeed.freenet.de!news.tiscali.de!news.belwue.de!news.uni-stuttgart.de!not-for-mail From: Stefan Bellon Newsgroups: comp.lang.ada Subject: Re: Exception propagation with optimization flags Date: Wed, 4 Oct 2006 18:33:19 +0200 Organization: Comp.Center (RUS), U of Stuttgart, FRG Message-ID: <20061004183319.09f5706c@cube.tz.axivion.com> References: <1159913899.620229.69760@m73g2000cwd.googlegroups.com> <1159968673.163378.15830@m7g2000cwm.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: infosun2.rus.uni-stuttgart.de 1159979594 7212 129.69.226.23 (4 Oct 2006 16:33:14 GMT) X-Complaints-To: news@news.uni-stuttgart.de NNTP-Posting-Date: Wed, 4 Oct 2006 16:33:14 +0000 (UTC) X-Newsreader: Sylpheed-Claws 2.4.0 (GTK+ 2.8.20; i486-pc-linux-gnu) X-URL: http://www.axillion.de/ Xref: g2news2.google.com comp.lang.ada:6866 Date: 2006-10-04T18:33:19+02:00 List-Id: ldb wrote: > gnatmake -fomit-frame-pointer -O2 super.adb (doesn't work) > gnatmake -fomit-frame-pointer -O1 super.adb (works) > gnatmake -O2 super.adb (works) I recently had a similar problem on Solaris 8 using the GNU ld/as instead of the Sun ones. In that case, static linking didn't catch exceptions. However when I added "-bargs -shared" to the gnatmake call, the exceptions were caught again. Using the Sun ld/as instead of the GNU ld/as however catches exceptions regardless of whether linking -static or -shared. -- Stefan Bellon