public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Christophe Lyon <christophe.lyon@linaro.org>
To: Tom de Vries <Tom_deVries@mentor.com>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>,
	Rainer Orth <ro@cebitec.uni-bielefeld.de>
Subject: Re: [PATCH, testsuite] Add effective target stack_size
Date: Mon, 12 Jun 2017 12:28:00 -0000	[thread overview]
Message-ID: <CAKdteObj-nUfOfJ6aJL-o=O-kRuwK5a-7986LdrYPzJg_cnCbg@mail.gmail.com> (raw)
In-Reply-To: <62E9DFA1-67E2-442B-8348-61953EAEC5A9@comcast.net>

Hi Tom,

On 9 June 2017 at 17:25, Mike Stump <mikestump@comcast.net> wrote:
> On Jun 9, 2017, at 7:24 AM, Tom de Vries <Tom_deVries@mentor.com> wrote:
>> this patch adds effective target stack_size.
>
>> OK for trunk if x86_64 and nvptx testing succeeds?
>
> Ok.
>
> The only last issue in this area that I know about is that there are a few more test cases that need up to 48 MB to run, the problem is that targets might have substantially less memory.  Stack size is one of the ways this problem can be exposed.  The failure to load case is or can be handled in other ways, but the dynamic allocation case I think is relatively poorly handled.  On my machine, I just punted by running on a virtual simulator that I pushed memory up to 48 MB and ignored the issue.  If anyone wants to try their hand at it, I'd be happy to review some patches.  For those on demand virtual memory systems, of course, the problem is invisible.  I didn't have any good ideas in this area.  Marking large memory test cases with size information, and then just trimming based upon size was my only thought.  Not exactly portable, as the exact size of any test case is of course target dependent; but, if we get close enough, it can provide enough of a solution I think.
>
> If people have better ideas in this area, even if you don't want to implement them, it'd be nice to hear about them.

After this commit (r249090), I've noticed that badalloc1.C fails at
execution on aarch64 and arm bare-metal targets.

It is compiled with -DSTACK_SIZE=16384, maybe that's too small?

Thanks,

Christophe

  reply	other threads:[~2017-06-12 12:28 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-09 14:24 Tom de Vries
2017-06-09 15:25 ` Mike Stump
2017-06-12 12:28   ` Christophe Lyon [this message]
2017-06-12 14:29     ` Tom de Vries
2017-06-19  9:21       ` Christophe Lyon
2017-06-19 15:42         ` Mike Stump
2017-06-19 17:11   ` Add dg-add-options feature stack_size Tom de Vries
2017-06-19 17:36     ` Mike Stump
2017-06-21 13:19 ` [PATCH, testsuite] Add effective target stack_size Jakub Jelinek
2017-06-21 14:27   ` [testsuite, committed] Support dg-add-options in profopt.exp Tom de Vries
2022-11-08 20:29 ` nvptx: stack size limits are relevant for execution only (was: [PATCH, testsuite] Add effective target stack_size) Thomas Schwinge
2022-11-25 11:09   ` [PING] " Thomas Schwinge
2022-12-20  7:55     ` [PING^2] " Thomas Schwinge
2023-01-11 11:45       ` [PING^3] " Thomas Schwinge

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='CAKdteObj-nUfOfJ6aJL-o=O-kRuwK5a-7986LdrYPzJg_cnCbg@mail.gmail.com' \
    --to=christophe.lyon@linaro.org \
    --cc=Tom_deVries@mentor.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=ro@cebitec.uni-bielefeld.de \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).