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

Reply via email to