dg-skip-if was Re: gcc 4.3.0 i386 default question
Joseph S. Myers
joseph@codesourcery.com
Fri Mar 14 20:45:00 GMT 2008
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
joseph@codesourcery.com
More information about the Gcc
mailing list