mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: "Steven J. Magnani" <steve@digidescorp.com>
Cc: linux-kernel@vger.kernel.org, microblaze-uclinux@itee.uq.edu.au,
	dan.j.williams@intel.com
Subject: Re: Buggy variable-length array code...or compiler?
Date: Fri, 26 Feb 2010 00:23:45 +0100	[thread overview]
Message-ID: <20100225232345.GA16671@const.homenet.telecomitalia.it> (raw)
In-Reply-To: <1267139849.3079.68.camel@iscandar.digidescorp.com>

IIRC C99 allows VLAs to not be freed immediately, but at function
termination, which makes things way simpler to implement for compilers.
I've noticed it on Solaris and cell's spugcc.

Steven J. Magnani, le Thu 25 Feb 2010 17:17:29 -0600, a écrit :
> 1. There is a coding error in dmatest

It needs to get out of the function from times to times to free the
VLAs.

> 2. There is a bug specific to Microblaze gcc compiler(s) [mine is 4.1.2]
> 3. There is a bug generic to specific versions of gcc compilers
> 4. There is a bug generic to all gcc compilers

I've usually seen gcc free VLAs as soon as possible, so I believe it's
only a few targets.

Samuel

  reply	other threads:[~2010-02-25 23:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-25 23:17 Steven J. Magnani
2010-02-25 23:23 ` Samuel Thibault [this message]
2010-02-25 23:46 ` David Rientjes
2010-02-26 10:27   ` Dan Carpenter
2010-02-26 19:15     ` Steven J. Magnani
2010-02-26 19:43       ` Dan Williams
2010-02-26  0:46 ` J.A. Magallón
2010-02-26 17:43   ` Samuel Thibault
2010-02-26 18:52   ` Steven J. Magnani
2010-02-26 10:11 ` Dan Carpenter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100225232345.GA16671@const.homenet.telecomitalia.it \
    --to=samuel.thibault@ens-lyon.org \
    --cc=dan.j.williams@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=microblaze-uclinux@itee.uq.edu.au \
    --cc=steve@digidescorp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®