This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: testsuite exp programming issue
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: Jack Howarth <howarth at bromo dot msbb dot uc dot edu>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 4 Oct 2006 10:33:59 -0700
- Subject: Re: testsuite exp programming issue
- References: <20061004024047.3F351110010@bromo.msbb.uc.edu>
On Tue, Oct 03, 2006 at 10:40:47PM -0400, Jack Howarth wrote:
> however this doesn't manage to detect when '-m64'
> is being used in the compile flags. Does anyone have
> any hints on how to change...
>
> + [regexp ".*-m64.*" "$(options)"] } {
>
> to properly catch the instances when -m64 is being used
> in the compilations? Thanks in advance for any help.
Options used for a test come from many sources, but check-flags in
gcc/testsuite/lib/target-supports-dg.exp hits all of them I could find.
For -m64, though, a better choice is [ is-effective-target lp64 ].
I'm not sure where this particular issue of handling objc tests is going,
but if you end up needing to use dg-skip-if or dg-options in individual
tests you would use { target { powerpc-apple-darwin8 && lp64 } }.
Janis