comp.lang.ada
 help / color / mirror / Atom feed
From: onox <denkpadje@gmail.com>
Subject: Re: My first compiler bug: work around or redesign?
Date: Fri, 30 Mar 2012 16:42:14 -0700 (PDT)
Date: 2012-03-30T16:42:14-07:00	[thread overview]
Message-ID: <efa01e7e-70f2-46ec-8411-bdf2662c7e26@a5g2000vbl.googlegroups.com> (raw)
In-Reply-To: 19538743.70.1333009514665.JavaMail.geo-discussion-forums@ynes7

On Mar 29, 10:25 am, Ludovic Brenta <ludo...@ludovic-brenta.org>
wrote:
> Natasha Kerensikova wrote on comp.lang.ada:
>
> > Ludovic Brenta wrote:
> >> Report it to the FSF athttp://gcc.gnu.org/bugzilla. IMHO, a public bug
> >> database is worth a thousand private ones.
>
> >http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52752
>
> > Below is the minimal testcase I have worked out.
>
> > Is there anything I should do at this point? Or will everything leading
> > to a fix be handled from there?
>
> Just wait for someone to fix the bug and then consider backporting
> the fix into your distribution's version of GNAT.
>
> But Per Sandberg wrote the day before on comp.lang.ada:
>
> > Any way it is reported.
>
> which pointed me tohttp://gcc.gnu.org/PR52735
>
> So you should indicate that your bug is a duplicate with a more
> minimal test case.
>
> --
> Ludovic Brenta.

It seems the error is triggered in a different .c file with GPL 2010:

gnatmake -v -gnat05 -gnatd -O0 testcase.adb:

+===========================GNAT BUG
DETECTED==============================+
| GPL 2010 (20100603) (i686-pc-linux-gnu) GCC
error:                       |
| in simplify_subreg, at simplify-rtx.c:
4924                               |
| Error detected around test.adb:16
...
compilation abandoned

gnatmake -v -gnat05 -gnatd -O1 testcase.adb:

+===========================GNAT BUG
DETECTED==============================+
| GPL 2010 (20100603) (i686-pc-linux-gnu) GCC
error:                       |
| in simplify_subreg, at simplify-rtx.c:
4924                               |
| Error detected around test.adb:21
...
raised TYPES.UNRECOVERABLE_ERROR : comperr.adb:423

gnatmake -v -gnat05 -gnatd -O2 testcase.adb:

gcc -c -gnat05 -gnatd -O2 test.adb

raised STORAGE_ERROR : stack overflow (or erroneous memory access)

No gnat bug box with -O2 :/



  reply	other threads:[~2012-03-30 23:42 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-23 16:29 My first compiler bug: work around or redesign? Natasha Kerensikova
2012-03-23 17:51 ` Ludovic Brenta
2012-03-23 21:20   ` Natasha Kerensikova
2012-03-23 17:56 ` Jeffrey Carter
2012-03-23 18:22 ` Jeffrey Carter
2012-03-23 21:23   ` Natasha Kerensikova
2012-03-23 22:54     ` Jeffrey Carter
2012-03-23 18:29 ` Simon Wright
2012-03-23 18:37 ` Dmitry A. Kazakov
2012-03-23 18:48   ` Robert A Duff
2012-03-23 21:40     ` Natasha Kerensikova
2012-03-24  0:04       ` Georg Bauhaus
2012-03-24  9:50         ` Natasha Kerensikova
2012-03-23 21:34   ` Natasha Kerensikova
2012-03-23 19:04 ` Jeffrey Carter
2012-03-26 18:15 ` Natasha Kerensikova
2012-03-26 18:43   ` Simon Wright
2012-03-26 18:55   ` Ludovic Brenta
2012-03-28 15:30     ` Natasha Kerensikova
2012-03-29  8:25       ` Ludovic Brenta
2012-03-30 23:42         ` onox [this message]
2012-04-02 20:51           ` Ludovic Brenta
2012-04-03  2:50             ` onox
2012-03-26 21:47   ` Georg Bauhaus
2012-03-27  5:34     ` Per Sandberg
2012-03-27  7:30     ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox