This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Add a testase for PR middle-end/47383
- From: Kirill Yukhin <kirill dot yukhin at gmail dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 4 Aug 2011 13:07:18 +0400
- Subject: Re: PATCH: Add a testase for PR middle-end/47383
- References: <20110803144549.GA21714@lucon.org>
HJ, are you sure your Changlog entry is OK?
Thanks, K
On Wed, Aug 3, 2011 at 6:45 PM, H.J. Lu <hongjiu.lu@intel.com> wrote:
> Hi,
>
> I checked in this patch to add a testase for PR middle-end/47383.
>
> H.J.
> ---
> Index: gcc.dg/torture/pr47383.c
> ===================================================================
> --- gcc.dg/torture/pr47383.c ? ?(revision 0)
> +++ gcc.dg/torture/pr47383.c ? ?(revision 0)
> @@ -0,0 +1,30 @@
> +/* { dg-do run } */
> +
> +static int heap[2*(256 +1+29)+1];
> +static int heap_len;
> +static int heap_max;
> +void
> +__attribute__ ((noinline))
> +foo (int elems)
> +{
> + ?int n, m;
> + ?int max_code = -1;
> + ?int node = elems;
> + ?heap_len = 0, heap_max = (2*(256 +1+29)+1);
> + ?for (n = 0; n < elems; n++)
> + ? ?heap[++heap_len] = max_code = n;
> + ?do {
> + ? ?n = heap[1];
> + ? ?heap[1] = heap[heap_len--];
> + ? ?m = heap[1];
> + ? ?heap[--heap_max] = n;
> + ? ?heap[--heap_max] = m;
> + ?} while (heap_len >= 2);
> +}
> +
> +int
> +main ()
> +{
> + ?foo (286);
> + ?return 0;
> +}
> Index: ChangeLog
> ===================================================================
> --- ChangeLog ? (revision 177275)
> +++ ChangeLog ? (working copy)
> @@ -1,3 +1,8 @@
> +2011-08-03 ?H.J. Lu ?<hongjiu.lu@intel.com>
> +
> + ? ? ? PR middle-end/47383
> + ? ? ? * gcc.dg/torture/pr47383.c: Likewise.
> +
> ?2011-08-03 ?Arnaud Charlet ?<charlet@adacore.com>
>
> ? ? ? ?* gnat.dg/specs/debug1.ads: Add missing -margs switch.
>