This is the mail archive of the
mailing list for the GCC project.
Re: RFA: Add dg-require-int-sized-pointers to testsuite
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: Richard Sandiford <rsandifo at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 2 Nov 2004 11:41:19 -0800
- Subject: Re: RFA: Add dg-require-int-sized-pointers to testsuite
- References: <firstname.lastname@example.org>
On Mon, Nov 01, 2004 at 08:03:02PM +0000, Richard Sandiford wrote:
> * lib/target-supports.exp (get_compiler_messages): New procedure,
> extracting and generalizing code from...
> (check_named_sections_available): ...here.
> (check_int_sized_pointers): New procedure.
> * lib/gcc-dg.exp (dg-require-int-sized-pointers): New procedure.
> * g++.dg/parse/cast1.C: Use dg-require-int-sized-pointers.
> * g++.old-deja/g++.mike/p784.C: Likewise.
I like this patch, although I can't approve it. I've been working on
similar dg-require* support for ilp32 and lp64, and your new procedure
get_compiler_messages allows me to do it in a way that is much simpler
than what I was doing originally.
I'm trying to disentangle my new changes into small patches, but part of
what they'll do is add dg-require-effective-target which takes a keyword
argument like "lp64", "ilp32", "vmx_hw", and anything else where the
corresponding check_* procedure returns a simple 1 or 0. I'll try to
get that piece submitted soon so you can see if you'd like to use that
instead of a separate dg-require-int-sized-pointers.