On Fri, Nov 16, 2012 at 08:53:54AM +0100, Uros Bizjak wrote:
> 2012-11-16  Uros Bizjak  <ubiz...@gmail.com>
> 
>       * lib/target_suports.exp
>       (check_effective_target_has_w_floating_suffix): New procedure.
>       (check_effective_target_has_q_floating_suffix): Ditto.
>       * g++.dg/cpp0x/gnu_fext-numeric-literals.C: Add dg-error directive
>       for unsupported non-standard suffix on floating constant.
>       * g++.dg/cpp0x/std_fext-numeric-literals.C: Ditto.
> 
> Attached patch was re-tested on alphaev68-linux-gnu and
> x86_64-linux-gnu and committed to mainline SVN.

Perhaps just bike-shed, but I'd write it as:

> +# Return 1 if the target supports 'w' suffix on floating constant
> +# 0 otherwise.
> +
> +proc check_effective_target_has_w_floating_suffix { } {
    if [check_effective_target_c++] {
        opts="-std=gnu++03"
    else
        opts=""
    }
> +    return [check_no_compiler_messages w_fp_suffix object {
> +     float dummy = 1.0w;
       } "$opts"]

but I admit I haven't tested it.

        Jakub

Reply via email to