On Fri, 14 Mar 2008, Paul Brook wrote:

> I you have several of these you might want to consider adding an 
> effective-target check that uses a compile test rather than guessing from 
> commandline options. c.f. check_effective_target_arm32 and 
> check_effective_target_arm_vfp_ok.

Note the issue is *not* an error if two options are present, simply that 
one overrides the other.

The tests must be run, with the option from dg-options, if no -mcpu 
multilib option is passed.  (This probably covers most runs of the tests.)

The tests should be run if the same option as in dg-options is also in the 
multilib options.  (This is probably a less frequent case.)

The tests must not be run if a different option is in dg-options.  The 
compiler won't give the errors that are useful in checking effective 
targets, it will just quietly have the multilib option override the option 
in dg-options.

-- 
Joseph S. Myers
[EMAIL PROTECTED]

Reply via email to