Bug 42127 - Verify_flow_info: Wrong frequency of block. Profiled bootstrap failed.
Summary: Verify_flow_info: Wrong frequency of block. Profiled bootstrap failed.
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: middle-end (show other bugs)
Version: 4.5.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: build
Depends on:
Blocks:
 
Reported: 2009-11-21 02:32 UTC by Dmitry Gorbachev
Modified: 2009-11-23 22:04 UTC (History)
3 users (show)

See Also:
Host: i686-pc-linux-gnu
Target: i686-pc-linux-gnu
Build: i686-pc-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Gorbachev 2009-11-21 02:32:02 UTC
GCC 4.5.0 20091119 (r154346)

../../gcc-4.5/gcc/gengtype-parse.c: In function ‘array_and_function_declarators_opt’:
../../gcc-4.5/gcc/gengtype-parse.c:508:1: error: verify_flow_info: Wrong frequency of block 13 -184951
../../gcc-4.5/gcc/gengtype-parse.c:508:1: internal compiler error: verify_flow_info failed
Comment 1 Dmitry Gorbachev 2009-11-21 13:40:13 UTC
This maybe related to r154291 (tree-optimize.c (execute_fixup_cfg): Rescale frequencies.) Counts are not rescaled for entry block and exit block. Then in counts_to_freqs(), their frequencies become very large. Then overflow into a negative number in EDGE_FREQUENCY() in find_many_sub_basic_blocks().
Comment 2 Bake Timmons 2009-11-21 17:37:34 UTC
(In reply to comment #0)
> GCC 4.5.0 20091119 (r154346)
> 
> ../../gcc-4.5/gcc/gengtype-parse.c: In function
> ‘array_and_function_declarators_opt’:
> ../../gcc-4.5/gcc/gengtype-parse.c:508:1: error: verify_flow_info: Wrong
> frequency of block 13 -184951
> ../../gcc-4.5/gcc/gengtype-parse.c:508:1: internal compiler error:
> verify_flow_info failed
> 

Also happens on x86_64-unknown-linux-gnu under r154408:

../../gcc/gcc/c-parser.c: In function ‘c_parser_next_token_is’:
../../gcc/gcc/c-parser.c:336:1: error: verify_flow_info: Wrong frequency of block 7 -199641

Comment 3 Jan Hubicka 2009-11-21 18:54:25 UTC
Subject: Re:  Verify_flow_info: Wrong frequency of block. Profiled bootstrap failed.

> 
> 
> ------- Comment #2 from b3timmons at speedymail dot org  2009-11-21 17:37 -------
> (In reply to comment #0)
> > GCC 4.5.0 20091119 (r154346)
> > 
> > ../../gcc-4.5/gcc/gengtype-parse.c: In function
> > ‘array_and_function_declarators_opt’:
> > ../../gcc-4.5/gcc/gengtype-parse.c:508:1: error: verify_flow_info: Wrong
> > frequency of block 13 -184951
> > ../../gcc-4.5/gcc/gengtype-parse.c:508:1: internal compiler error:
> > verify_flow_info failed
> > 
> 
> Also happens on x86_64-unknown-linux-gnu under r154408:
> 
> ../../gcc/gcc/c-parser.c: In function ‘c_parser_next_token_is’:
> ../../gcc/gcc/c-parser.c:336:1: error: verify_flow_info: Wrong frequency of
> block 7 -199641

Looks like overflow in frequency scaling.  I will look into this.

Honza
Comment 4 Jan Hubicka 2009-11-23 22:04:06 UTC
Fixed.