Bug 57726

Summary: LTO verify_flow_info: error: control flow in the middle of basic block
Product: gcc Reporter: Martin Liška <mliska>
Component: ltoAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED WORKSFORME    
Severity: normal CC: hubicka
Priority: P3    
Version: 4.9.0   
Target Milestone: ---   
Host: Target:
Build: Known to work:
Known to fail: Last reconfirmed: 2016-09-11 00:00:00
Bug Depends on:    
Bug Blocks: 57208    
Attachments: onyx_if.c

Description Martin Liška 2013-06-26 12:30:57 UTC
Chrome ltrans3 compilation fails due to:

../../third_party/libvpx/source/libvpx/vp8/encoder/onyx_if.c: In function ‘vp8_get_compressed_data’:
../../third_party/libvpx/source/libvpx/vp8/encoder/onyx_if.c:5547:0: error: control flow in the middle of basic block 6
 int vp8_set_internal_size(VP8_COMP *cpi, VPX_SCALING horiz_mode, VPX_SCALING vert_mode)
 ^
../../third_party/libvpx/source/libvpx/vp8/encoder/onyx_if.c:5547:0: error: control flow in the middle of basic block 6
../../third_party/libvpx/source/libvpx/vp8/encoder/onyx_if.c:5547:0: error: control flow in the middle of basic block 6
../../third_party/libvpx/source/libvpx/vp8/encoder/onyx_if.c:5547:0: error: control flow in the middle of basic block 64
../../third_party/libvpx/source/libvpx/vp8/encoder/onyx_if.c:5547:0: error: control flow in the middle of basic block 73
../../third_party/libvpx/source/libvpx/vp8/encoder/onyx_if.c:5547:0: error: control flow in the middle of basic block 73
../../third_party/libvpx/source/libvpx/vp8/encoder/onyx_if.c:5547:0: error: control flow in the middle of basic block 73
../../third_party/libvpx/source/libvpx/vp8/encoder/onyx_if.c:5547:0: error: control flow in the middle of basic block 73
../../third_party/libvpx/source/libvpx/vp8/encoder/onyx_if.c:5547:0: error: control flow in the middle of basic block 73
../../third_party/libvpx/source/libvpx/vp8/encoder/onyx_if.c:5547:0: error: control flow in the middle of basic block 73
../../third_party/libvpx/source/libvpx/vp8/encoder/onyx_if.c:5547:0: error: control flow in the middle of basic block 73
../../third_party/libvpx/source/libvpx/vp8/encoder/onyx_if.c:5547:0: error: control flow in the middle of basic block 73
../../third_party/libvpx/source/libvpx/vp8/encoder/onyx_if.c:5547:0: error: control flow in the middle of basic block 103
../../third_party/libvpx/source/libvpx/vp8/encoder/onyx_if.c:5547:0: error: control flow in the middle of basic block 103
../../third_party/libvpx/source/libvpx/vp8/encoder/onyx_if.c:5547:0: error: control flow in the middle of basic block 103
../../third_party/libvpx/source/libvpx/vp8/encoder/onyx_if.c:5547:0: error: control flow in the middle of basic block 103
../../third_party/libvpx/source/libvpx/vp8/encoder/onyx_if.c:5547:0: error: control flow in the middle of basic block 103
../../third_party/libvpx/source/libvpx/vp8/encoder/onyx_if.c:5547:0: error: control flow in the middle of basic block 103
../../third_party/libvpx/source/libvpx/vp8/encoder/onyx_if.c:5547:0: error: control flow in the middle of basic block 103
../../third_party/libvpx/source/libvpx/vp8/encoder/onyx_if.c:5547:0: error: control flow in the middle of basic block 103
../../third_party/libvpx/source/libvpx/vp8/encoder/onyx_if.c:5547:0: internal compiler error: verify_flow_info failed
0x568b5d verify_flow_info()
	../../gcc/cfghooks.c:260
0x88d734 cleanup_tree_cfg_noloop
	../../gcc/tree-cfgcleanup.c:696
0x88d734 cleanup_tree_cfg()
	../../gcc/tree-cfgcleanup.c:745
0x7b16c4 execute_function_todo
	../../gcc/passes.c:1927
0x7b1fcd execute_todo
	../../gcc/passes.c:2002
0x7b3ba9 execute_one_ipa_transform_pass
	../../gcc/passes.c:2185
0x7b3ba9 execute_all_ipa_transforms()
	../../gcc/passes.c:2215
0x58673e expand_function
	../../gcc/cgraphunit.c:1584
0x58841c expand_all_functions
	../../gcc/cgraphunit.c:1695
0x58841c compile()
	../../gcc/cgraphunit.c:2029
0x50e3f1 lto_main()
	../../gcc/lto/lto.c:3872

gcc --version:
gcc (GCC) 4.9.0 20130624 (experimental)

Link to all ltrans3 dump files:
https://docs.google.com/file/d/0B0pisUJ80pO1akhINVR1anpTbDg/edit?usp=sharing

Source file is attached.

Thanks,
Martin
Comment 1 Martin Liška 2013-06-26 12:31:44 UTC
Created attachment 30373 [details]
onyx_if.c
Comment 2 Jan Hubicka 2016-09-11 12:18:59 UTC
Seems the testcase is not complete.  Does it still reproduce?
Comment 3 Martin Liška 2017-03-02 08:45:49 UTC
It's quite old issue and since that I built Chromium w/ LTO many times.