public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Ian Lance Taylor <iant@google.com>
To: Florent DEFAY <spira.inhabitant@gmail.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: new port's validation
Date: Mon, 27 Apr 2009 21:25:00 -0000	[thread overview]
Message-ID: <m3r5zdn60e.fsf@google.com> (raw)
In-Reply-To: <8502af3c0904270744o24f3f2fao26f77751292097fb@mail.gmail.com> (Florent DEFAY's message of "Mon\, 27 Apr 2009 16\:44\:47 +0200")

Florent DEFAY <spira.inhabitant@gmail.com> writes:

>> You can define STACK_SIZE while running the tests.  That will disable
>> some large tests.  I think this can be done in your site.exp file or
>> your board support file by setting target_info gcc,stack_size.  See
>> gcc/testsuite/lib/gcc.exp for other target_info fields of interest.
>
> I cannot find any site.exp file. Can you give me a tree example for
> another arch?

When run "make check-gcc" it will create a site.exp file.  If there is
an existing site.exp file, it will be edited to preserve whatever values
are already there.


> I did not find anything looking like defining target_info in .exp files but only
> using target_info. Where should I add a board support file?

I've never figured out how this is supposed to work cleanly, if indeed
such a thing was ever defined.  I just add new files to the baseboards
directory in the dejagnu tree, e.g., /usr/share/dejagnu/baseboards.


>> The testsuite also supports a dg-require framework.  For example, a test
>> marked with
>>
>> /* { dg-require-effective-target int32plus } */
>>
>> should not be run on a target with 16-bit ints.
>
> How to tell the testsuite that my target is 16-bit? I found that in
> target-supports.exp:
> proc check_effective_target_int32plus { } {
>     return [check_no_compiler_messages int32plus object {
>         int dummy[sizeof (int) >= 4 ? 1 : -1];
>     }]
> }
>
> Is it cross-compiled and executed code? Because execution is not
> configured (simulator not configured).

That code is not executed, it is simply cross-compiled.  The compilation
will fail if sizeof(int) < 4 because dummy[-1] is a compilation error.

Ian

  reply	other threads:[~2009-04-27 21:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-24 12:16 Florent DEFAY
2009-04-24 19:35 ` Ian Lance Taylor
2009-04-27 14:44   ` Florent DEFAY
2009-04-27 21:25     ` Ian Lance Taylor [this message]
2009-04-30 22:57 ` Michael Meissner

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=m3r5zdn60e.fsf@google.com \
    --to=iant@google.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=spira.inhabitant@gmail.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).