This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: gcc.dg/compat/struct-layout-1.exp does not supported installed-compiler testing
- From: Ian Lance Taylor <ian at airs dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: Richard Guenther <richard dot guenther at gmail dot com>, Mark Mitchell <mark at codesourcery dot com>, gcc mailing list <gcc at gcc dot gnu dot org>, Jakub Jelinek <jakub at redhat dot com>, Janis Johnson <janis187 at us dot ibm dot com>, DJ Delorie <dj at redhat dot com>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: 17 May 2005 10:00:43 -0400
- Subject: Re: gcc.dg/compat/struct-layout-1.exp does not supported installed-compiler testing
- References: <4287E531.8030000@codesourcery.com><m38y2fg944.fsf@gossamer.airs.com> <42893A3C.4010507@codesourcery.com><84fc9c0005051705171d830058@mail.gmail.com><m3r7g6au04.fsf@gossamer.airs.com> <jer7g6asby.fsf@sykes.suse.de>
Andreas Schwab <schwab@suse.de> writes:
> Ian Lance Taylor <ian@airs.com> writes:
>
> > Richard Guenther <richard.guenther@gmail.com> writes:
> >
> >> Note how
> >> 1. it uses $(CC) for building, not the built compiler
> >
> > That is correct, as this program is run on the build system to
> > generate test cases.
>
> Shouldn't it use CC_FOR_BUILD then?
No, I was wrong. It uses the magic of DejaGNU to build the program on
the host system and run it over there, so $(CC) is correct. See
testsuite/gcc.dg/compat/struct-layout-1.exp
for the details. In any case it should not use the built compiler.
Ian