This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Condition some Power tests on powerpc_fprs and powerpc_altivec_ok


On Wed, 4 Jun 2008, Janis Johnson wrote:

> On Wed, 2008-06-04 at 17:53 +0000, Joseph S. Myers wrote:
> > This patch makes four Power tests that require FPRs conditional on
> > powerpc_fprs (recall that multilib options come after the options in
> > dg-options, so such tests need disabling for non-FPRs multilibs
> > regardless of what options they specify) and one test using -maltivec
> > conditional on powerpc_altivec_ok.  OK to commit?
> 
> Normally a GCC compiler will generate code for any processor in
> the architecture family.  Most of these are compile-only tests;
> are you saying that some compilers that don't support FPRs by
> default also don't support compiling for specific CPUs that
> support FPRs?

The specific CPU named in the test is irrelevant, because the multilib 
options override it.  The test can say -mcpu=something-with-fprs, but when 
the multilib options used in testing are -mcpu=something-without-fprs, or 
-msoft-float, those go later on the command line and so take precedence.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]