Bug 57726 - LTO verify_flow_info: error: control flow in the middle of basic block
Summary: LTO verify_flow_info: error: control flow in the middle of basic block
Status: RESOLVED WORKSFORME
Alias: None
Product: gcc
Classification: Unclassified
Component: lto (show other bugs)
Version: 4.9.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks: 57208
  Show dependency treegraph
 
Reported: 2013-06-26 12:30 UTC by Martin Liška
Modified: 2017-03-02 08:45 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2016-09-11 00:00:00


Attachments
onyx_if.c (36.92 KB, text/x-csrc)
2013-06-26 12:31 UTC, Martin Liška
Details

Note You need to log in before you can comment on or make changes to this bug.
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.