On Tue, Mar 13, 2007 at 12:28:22PM -0700, Kazu Hirata wrote:
> Hi Janis,
> 
> While PR 28834 stays open, I'm thinking about XFAILing
> gcc.c-torture/execute/mayalias-2.c when it is run with -O3 -g.
> However, I am not having any luck with writing mayalias-2.x.  I am
> wondering if you could help me with XFAIL.
> 
> When I try mayalias-2.x like so:
> 
> set torture_eval_before_execute {
>     global compiler_conditional_xfail_data
>     set compiler_conditional_xfail_data {
>         "PR 28834" \
>         { "*-*-*" } \
>         { "-O3" } \
>         { "" }
>     }
> }
> return 0
> 
> I get
> 
> XPASS: gcc.c-torture/execute/mayalias-2.c execution,  -O3 
> -fomit-frame-pointer 
> FAIL: gcc.c-torture/execute/mayalias-2.c compilation,  -O3 -g  (internal 
> compiler error)
> 
> That is, I am getting an unintended XPASS for
> -O3 fomit-frame-pointer.  Also, the "-O3 -g" one doesn't show XFAIL
> even though the options do contain -O3.
> 
> How do I make gcc.c-torture/execute/mayalias-2.c XFAIL on -O3 -g?

You want the XFAIL to apply to compilation, not execution, and only for
"-O3 -g", not for all uses of -O3.  This one works (surprisingly, because
as Andrew said it's usually not possible to XFAIL an ICE).

    set torture_eval_before_compile {
      set compiler_conditional_xfail_data {
        "PR 28834" { "*-*-*" } { "-O3 -g" } { "" }
      }
    }
    return 0

Janis

Reply via email to