Hi,

On Mon, Aug 16, 2021 at 10:52:07AM +0200, Mark Wielaard wrote:
> On Mon, 2021-08-16 at 07:48 +0000, d...@kataplop.net wrote:
> > Looks like tests are not OK, at least in the github action.
> 
> Are you talking about this patch (which I cannot find on github) or
> "Use builtin bool instead of creating new bool types for
> ComparisonExpr"? On github I can only see that one has a red cross
> which says "build-and-check" but doesn't give any more information
> except that "Check regressions" failed, but without any logs ("Sign in
> for the full log view").
> 
> >  Can't test but maybe you can confirm this issue ?
> > 
> > # of unexpected failures    14
> 
> On my setup, Debian arm64 with gcc 10.2, for both patches the newly
> added testcase fails without the patch and succeeds with the patch.
> I'll try to find some other setup. What is the configuration for the
> machine where you see the new unexpected failures (and with which
> patch)?

On irc we tracked down the confusion. This is about the other patch
"Use builtin bool instead of creating new bool types for
ComparisonExpr".  But rebased on top of current master. Which includes
the testcase rust/compile/torture/ifunaryexpr.rs

So the above failures where:

FAIL: rust/compile/torture/ifunaryexpr.rs   -O0  (internal compiler error)
FAIL: rust/compile/torture/ifunaryexpr.rs   -O0  (test for excess errors)
FAIL: rust/compile/torture/ifunaryexpr.rs   -O1  (internal compiler error)
FAIL: rust/compile/torture/ifunaryexpr.rs   -O1  (test for excess errors)
FAIL: rust/compile/torture/ifunaryexpr.rs   -O2  (internal compiler error)
FAIL: rust/compile/torture/ifunaryexpr.rs   -O2  (test for excess errors)
FAIL: rust/compile/torture/ifunaryexpr.rs   -O3 -g  (internal compiler error)
FAIL: rust/compile/torture/ifunaryexpr.rs   -O3 -g  (test for excess errors)
FAIL: rust/compile/torture/ifunaryexpr.rs   -Os  (internal compiler error)
FAIL: rust/compile/torture/ifunaryexpr.rs   -Os  (test for excess errors)
FAIL: rust/compile/torture/ifunaryexpr.rs   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  (internal compiler error)
FAIL: rust/compile/torture/ifunaryexpr.rs   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  (test for excess errors)
FAIL: rust/compile/torture/ifunaryexpr.rs   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  (internal compiler error)
FAIL: rust/compile/torture/ifunaryexpr.rs   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  (test for excess errors)

Now having replicated it locally the rust.log shows:

/srv/gccrs/gccrs/gcc/testsuite/rust/compile/torture/ifunaryexpr.rs: In function 
'main':
/srv/gccrs/gccrs/gcc/testsuite/rust/compile/torture/ifunaryexpr.rs:8:5: error: 
mismatching comparison operand types
const i32
bool
if (n != 0) goto <D.205>; else goto <D.206>;
/srv/gccrs/gccrs/gcc/testsuite/rust/compile/torture/ifunaryexpr.rs:8:5: 
internal compiler error: 'verify
_gimple' failed
0xf38fbd verify_gimple_in_seq(gimple*)
        ../../gccrs/gcc/tree-cfg.c:5157
0xc72346 gimplify_body(tree_node*, bool)
        ../../gccrs/gcc/gimplify.c:15401
0xc724cd gimplify_function_tree(tree_node*)
        ../../gccrs/gcc/gimplify.c:15472
0xab0dc7 cgraph_node::analyze()
        ../../gccrs/gcc/cgraphunit.c:670
0xab38b7 analyze_functions
        ../../gccrs/gcc/cgraphunit.c:1236
0xab454d symbol_table::finalize_compilation_unit()
        ../../gccrs/gcc/cgraphunit.c:2514

So, my patch created bad gimple. I'll try to track it down.

Cheers,

Mark

-- 
Gcc-rust mailing list
Gcc-rust@gcc.gnu.org
https://gcc.gnu.org/mailman/listinfo/gcc-rust

Reply via email to